login
A061244
Prime numbers with odd digits in ascending order.
2
3, 5, 7, 11, 13, 17, 19, 37, 59, 79, 113, 137, 139, 157, 179, 199, 337, 359, 379, 557, 577, 599, 1117, 1399, 1559, 1579, 1777, 1999, 3359, 3557, 3559, 3779, 5557, 5779, 11113, 11117, 11119, 11159, 11177, 11399, 11579, 11777, 11779, 13337, 13339
OFFSET
1,1
LINKS
EXAMPLE
37 is a term since 3 and 7 are odd digits and 3 < 7.
MAPLE
A061244:= {}:
for d from 1 to 20 do
for n1 from 0 to d do
x1:= (10^n1-1)/9;
for n3 from 0 to d-n1 do
x3:= x1*10^n3 + (10^n3-1)/9*3;
for n5 from 0 to d-n1-n3 do
x5:= x3*10^n5 + (10^n5-1)/9*5;
for n7 from 0 to d-n1-n3-n5 do
x7:= x5*10^n7 + (10^n7-1)/9*7;
n9:= d-n1-n3-n5-n7;
x:= x7*10^n9 + (10^n9-1);
if isprime(x) then
A061244:= A061244 union {x};
fi
od od od od od:
# Robert Israel, Apr 20 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Amarnath Murthy, Apr 23 2001
EXTENSIONS
More terms from Patrick De Geest, Jun 04 2001
STATUS
approved