[go: up one dir, main page]

login
Search: a178553 -id:a178553
     Sort: relevance | references | number | modified | created      Format: long | short | data
Primes with exactly one digit 1.
+10
11
13, 17, 19, 31, 41, 61, 71, 103, 107, 109, 127, 137, 139, 149, 157, 163, 167, 173, 179, 193, 197, 199, 241, 251, 271, 281, 313, 317, 331, 401, 419, 421, 431, 461, 491, 521, 541, 571, 601, 613, 617, 619, 631, 641, 661, 691, 701, 719, 751, 761, 821, 881, 919
OFFSET
1,1
LINKS
PROG
(Python)
from sympy import isprime
print([i for i in range(1000) if str(i).count('1') == 1 and isprime(i)]) # Daniel Starodubtsev, Mar 29 2020
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Lekraj Beedassy, May 29 2010
STATUS
approved
Primes with exactly two 2's.
+10
5
223, 227, 229, 1223, 1229, 2027, 2029, 2129, 2203, 2207, 2213, 2237, 2239, 2243, 2251, 2267, 2269, 2273, 2281, 2287, 2293, 2297, 2423, 2521, 2621, 2729, 2927, 3221, 3229, 4229, 5227, 6221, 6229, 7229, 8221, 9221, 9227, 10223, 12203, 12211, 12239
OFFSET
1,1
LINKS
PROG
(Python)
from sympy import isprime
print([i for i in range(10000) if str(i).count('2') == 2 and isprime(i)]) # Daniel Starodubtsev, Mar 29 2020
KEYWORD
nonn,base
AUTHOR
Lekraj Beedassy, May 29 2010
STATUS
approved
Primes with exactly three 3's.
+10
5
2333, 3313, 3323, 3331, 3343, 3373, 3433, 3533, 3733, 3833, 5333, 7333, 10333, 13033, 13313, 13331, 13337, 13339, 13633, 13933, 16333, 17333, 19333, 20333, 23339, 23633, 23833, 29333, 30133, 30313, 30323, 31033, 31337, 31393, 32233, 32303, 32323
OFFSET
1,1
LINKS
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Lekraj Beedassy, May 29 2010
EXTENSIONS
Missing a(26) = 23633 and a(27) = 23833 inserted by Daniel Starodubtsev, Mar 14 2020
STATUS
approved
Primes with exactly five 5's.
+10
5
555557, 1555553, 2555551, 3555551, 3555557, 4555559, 5055551, 5055559, 5355551, 5505551, 5535559, 5550553, 5550557, 5554553, 5555057, 5555059, 5555357, 5555507, 5555509, 5555527, 5555567, 5555591, 5555653, 5556557, 5556559, 5557553
OFFSET
1,1
LINKS
MATHEMATICA
Select[Prime[Range[PrimePi[55555], 1000000]], Count[IntegerDigits[#], 5]==5&] (* Harvey P. Dale, Dec 20 2010 *)
PROG
(PARI) isok(p) = isprime(p) && (#select(x->(x==5), digits(p)) == 5); \\ Michel Marcus, Mar 15 2020
KEYWORD
nonn,base
AUTHOR
Lekraj Beedassy, May 29 2010
EXTENSIONS
Missing a(14) = 5554553 inserted by Daniel Starodubtsev, Mar 15 2020
STATUS
approved

Search completed in 0.007 seconds