Anonymous user
Strange unique prime triplets: Difference between revisions
m
→{{header|REXX}}: reduced verbosity in the output prose.
m (→{{header|Go}}: Oops!) |
m (→{{header|REXX}}: reduced verbosity in the output prose.) |
||
Line 327:
end /*m*/
say
say 'Found ' commas(finds) " unique triplet strange primes
exit 0 /*stick a fork in it, we're all done. */
/*──────────────────────────────────────────────────────────────────────────────────────*/
Line 351:
<pre>
list of unique triplet strange primes that sum to a prime:
prime generation took 0.02 seconds.
3 5 11 sum to: 19
Line 395 ⟶ 396:
19 23 29 sum to: 71
Found 42 unique triplet strange primes < 30 which sum to a prime
</pre>
{{out|output|text= when using the input of: <tt> -1000 </tt>}}
<pre>
Found 241,580 unique triplet strange primes
</pre>
|