Strange plus numbers: Difference between revisions
m
a little bug, though that does not change the answer: 101..499 and not 100..500
(→{{header|Python}}: Added a Python version which lets sympy sleep in, this morning.) |
m (a little bug, though that does not change the answer: 101..499 and not 100..500) |
||
Line 58:
sieve(20, p);
for (n =
if (isstrange(n)) {
printf("%d%c", n, ++k%10 ? ' ' : '\n');
Line 148:
=={{header|Maple}}==
<lang maple>select(n->(u->isprime(add(u[1..2])) and isprime(add(u[2..3])))(convert(n,base,10)),[$
{{out}}
Line 371:
xor cx, cx
mov si,
L1 mov di, si
Line 423:
L6 inc si
cmp si, 500
int 20h
|