Additive primes: Difference between revisions

Line 1,614:
If is_prime[x] And is_prime[GetSumOfDigits(x)] Then
Begin
write(x,' ':4);
inc(counter);
End;
Line 1,622:
If is_prime[x] And is_prime[GetSumOfDigits(x)] Then
Begin
write(x,'if 'counter mod 10 = 0 then writeln();
write(x:4);
inc(counter);
End;
Line 1,634 ⟶ 1,635:
{{out}}
<pre>
2 3 5 7 11 23 29 41 43 47 61 67 83 89 101 113 131
137 139 15161 157 17367 179 19183 193 19789 199101 223113 227131 229137 241139 263 269 281151
157 173 179 191 193 197 199 223 227 229
283 311 313 317 331 337 353 359 373 379 397 401 409 421 443 449 461
241 263 269 281 283 311 313 317 331 337
463 467 487
283 311 313 317 331 337 353 359 373 379 397 401 409 421 443 449 461
461 463 467 487
 
54 additive primes found.
46

edits