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 = 100101; n <= 500; 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)),[$100101..500499]);</lang>
 
{{out}}
Line 371:
 
xor cx, cx
mov si, 100101
 
L1 mov di, si
Line 423:
L6 inc si
cmp si, 500
jbejb L1
int 20h
 
175

edits