First 9 prime Fibonacci number: Difference between revisions
Content deleted Content added
Hellangelx (talk | contribs) |
Hellangelx (talk | contribs) |
||
Line 1,196: | Line 1,196: | ||
if prime(b): |
if prime(b): |
||
f.append(b) |
f.append(b) |
||
print("fib(" |
print("fib(%d): %s (%s s)" % (len(f), b, time() - start)) |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
{{out}} |
{{out}} |
||
<pre> |
<pre> |
||
fib(3): 2 (0. |
fib(3): 2 (0.0 s) |
||
fib(4): 3 (0. |
fib(4): 3 (0.0 s) |
||
fib(5): 5 (0. |
fib(5): 5 (0.0 s) |
||
fib(7): 13 (0. |
fib(7): 13 (0.0 s) |
||
fib(11): 89 (0. |
fib(11): 89 (0.0 s) |
||
fib(13): 233 (0. |
fib(13): 233 (0.0 s) |
||
fib(17): 1597 (0. |
fib(17): 1597 (0.0 s) |
||
fib(23): 28657 (0. |
fib(23): 28657 (0.0 s) |
||
fib(29): 514229 (0. |
fib(29): 514229 (0.0009968280792236328 s) |
||
fib(43): 433494437 (0. |
fib(43): 433494437 (0.0009968280792236328 s) |
||
fib(47): 2971215073 (0. |
fib(47): 2971215073 (0.003988504409790039 s) |
||
fib(83): 99194853094755497 (15. |
fib(83): 99194853094755497 (15.122319459915161 s) |
||
Process finished with exit code 0 |
Process finished with exit code 0 |