Prime numbers p for which the sum of primes less than or equal to p is prime: Difference between revisions
Prime numbers p for which the sum of primes less than or equal to p is prime (view source)
Revision as of 19:08, 8 July 2021
, 2 years ago→{{header|XPL0}}: Made it less stupid.
(Realize in F#) |
(→{{header|XPL0}}: Made it less stupid.) |
||
Line 409:
];
int Count, N
[Count:= 0;
Sum:= 0;
for N:= 2 to 1000-1 do
if IsPrime(N) then
[Sum:=
if IsPrime(Sum) then
[IntOut(0, N);
|