Find prime numbers of the form n*n*n+2: Difference between revisions
Find prime numbers of the form n*n*n+2 (view source)
Revision as of 10:14, 15 May 2021
, 3 years agoMinor edit to Forth code
(Added C++ solution) |
m (Minor edit to Forth code) |
||
Line 399:
: main
200
i i i * * 2 + dup prime? if
i 3 .r 9 .r cr
Line 405:
drop
then
2 +loop ;
main
|