Jump to content

Find prime numbers of the form n*n*n+2: Difference between revisions

Frink
(Find prime numbers of the form n*n*n+2 en Python)
(Frink)
Line 751:
173 5177719
189 6751271
</pre>
 
=={{header|Frink}}==
<lang frink>for n = 1 to 199
if isPrime[n^3 + 2]
println["$n\t" + n^3+2]</lang>
{{out}}
<pre>
1 3
3 29
5 127
29 24391
45 91127
63 250049
65 274627
69 328511
71 357913
83 571789
105 1157627
113 1442899
123 1860869
129 2146691
143 2924209
153 3581579
171 5000213
173 5177719
189 6751271
</pre>
 
490

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.