Iccanobif primes: Difference between revisions
Content added Content deleted
(Added Run Basic and PureBasic) |
(J draft) |
||
Line 411: | Line 411: | ||
Same as Wren example. |
Same as Wren example. |
||
</pre> |
</pre> |
||
=={{header|J}}== |
|||
Borrowing <code>f3</code> from [[j:Essays/Fibonacci_Sequence#Power_of_phi|an essay on finding fibonacci numbers]] |
|||
<syntaxhighlight lang=J> f3=: {{ <.0.5 + (%:5) %~ (2 %~ 1+%:5)^y }} |
|||
(#~ 1 p:])|.&.|:"0 f3 2+i.69 |
|||
2 3 5 13 89 233 1597 28657 514229 433494437 2971215073</syntaxhighlight> |
|||
=={{header|jq}}== |
=={{header|jq}}== |