|
|
A214703
|
|
Primes that contain only the digits (2, 3, 5).
|
|
3
|
|
|
2, 3, 5, 23, 53, 223, 233, 353, 523, 2333, 3253, 3323, 3533, 5233, 5323, 5333, 23333, 25253, 25523, 32233, 32323, 32353, 32533, 33223, 33353, 33533, 35323, 35353, 35533, 52223, 52253, 52553, 53233, 53323, 53353, 55333, 222323, 222533, 222553, 223253, 225223
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
The digits are prime numbers excluding 7.
|
|
LINKS
|
|
|
MATHEMATICA
|
Flatten[Table[Select[FromDigits/@Tuples[{2, 3, 5}, n], PrimeQ], {n, 7}]]
|
|
PROG
|
(Magma) [p: p in PrimesUpTo(300000) | Set(Intseq(p)) subset [2, 3, 5]];
(Python)
from sympy import isprime
from itertools import count, islice, product
def agen(): yield from (k for d in count(1) for k in (int("".join(p)) for p in product("235", repeat=d)) if isprime(k))
|
|
CROSSREFS
|
Cf. A087363 (primes with only prime digits excluding 2).
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|