Summarize primes: Difference between revisions

Content deleted Content added
Realize in F#
m Removed double boxes from output
Line 74: Line 74:
for i=1, 162 do s:=s+Prime(i);if Isprime(s)=1 then n:=n+1;!!(n,Prime(i),s) fi od
for i=1, 162 do s:=s+Prime(i);if Isprime(s)=1 then n:=n+1;!!(n,Prime(i),s) fi od
</lang>
</lang>
{{out}}<pre>
{{out}}
<pre>
1 2 2
1 2 2
2 3 5
2 3 5
Line 112: Line 113:
end if
end if
next i</lang>
next i</lang>
{{out}}<pre>
{{out}}
<pre>
1 2 2
1 2 2
2 3 5
2 3 5