First 9 prime Fibonacci number: Difference between revisions
Content added Content deleted
(Created Nim solution.) |
(add RPL) |
||
Line 1,628: | Line 1,628: | ||
26: F(9677) = 10565977873308861656...95169792504550670357 (2023 digits) |
26: F(9677) = 10565977873308861656...95169792504550670357 (2023 digits) |
||
elapsed time: 22642 milliseconds |
elapsed time: 22642 milliseconds |
||
</pre> |
|||
=={{header|RPL}}== |
|||
≪ { } 0 1 |
|||
'''WHILE''' 3 PICK SIZE 9 < '''REPEAT''' |
|||
SWAP OVER + |
|||
'''IF''' DUP ISPRIME? '''THEN''' ROT OVER + UNROT '''END''' |
|||
'''END''' DROP2 |
|||
≫ '<span style="color:blue">TASK</span>' STO |
|||
{{out}} |
|||
<pre> |
|||
1: { 2 3 5 13 89 233 1597 28657 514229 } |
|||
</pre> |
</pre> |
||
Line 1,645: | Line 1,657: | ||
[2, 3, 5, 13, 89, 233, 1597, 28657, 514229] |
[2, 3, 5, 13, 89, 233, 1597, 28657, 514229] |
||
</pre> |
</pre> |
||
=={{header|Sidef}}== |
=={{header|Sidef}}== |
||
<syntaxhighlight lang="ruby">say 12.by { .fib.is_prime }.map { .fib }</syntaxhighlight> |
<syntaxhighlight lang="ruby">say 12.by { .fib.is_prime }.map { .fib }</syntaxhighlight> |