First 9 prime Fibonacci number: Difference between revisions

m
julia example
(added Phix, moved Python)
m (julia example)
Line 47:
2 3 5 13 89 233 1597 28657 514229 433494437 2971215073 99194853094755497
</pre>
 
=={{header|Julia}}==
<lang julia>using Lazy
using Primes
 
fibs = @lazy big"0":big"1":(fibs + drop(1, fibs))
 
primefibs = @>> fibs filter(isprime)
 
println(take(9, primefibs)) # List: (2 3 5 13 89 233 1597 28657 514229)
</lang>
 
=={{header|Perl}}==
4,103

edits