Sum of primes in odd positions is prime: Difference between revisions
Sum of primes in odd positions is prime (view source)
Revision as of 08:28, 20 April 2022
, 2 years ago→{{header|Yabasic}}
Line 812:
print "i\tp(n)\tsum\n----\t-----\t------"
for n = 2 to
if isPrime(n) then
i = i + 1
|