Extreme primes: Difference between revisions
Content added Content deleted
(Added FreeBasic) |
mNo edit summary |
||
Line 36: | Line 36: | ||
{{out}} |
{{out}} |
||
<pre>Similar to Ring entry.</pre> |
<pre>Similar to Ring entry.</pre> |
||
=={{header|Julia}}== |
|||
<syntaxhighlight lang="julia">julia> using Primes |
|||
julia> n = 0 |
|||
0 |
|||
julia> for p in primes(2300) n += p; isprime(n) && println(n); end |
|||
2 |
|||
5 |
|||
17 |
|||
41 |
|||
197 |
|||
281 |
|||
7699 |
|||
8893 |
|||
22039 |
|||
24133 |
|||
25237 |
|||
28697 |
|||
32353 |
|||
37561 |
|||
38921 |
|||
43201 |
|||
44683 |
|||
55837 |
|||
61027 |
|||
66463 |
|||
70241 |
|||
86453 |
|||
102001 |
|||
109147 |
|||
116533 |
|||
119069 |
|||
121631 |
|||
129419 |
|||
132059 |
|||
263171 |
|||
287137 |
|||
325019 |
|||
329401 |
|||
333821 |
|||
338279 |
|||
342761 |
|||
360979 |
|||
</syntaxhighlight> |
|||
=={{header|Ring}}== |
=={{header|Ring}}== |