|
|
A152533
|
|
Numbers k>4 such that 10^k + 1111 is prime.
|
|
0
|
|
|
5, 11, 22, 41, 43, 203, 243, 305, 321, 570, 731, 1512, 1787, 2146, 3987, 4056, 5296
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
The decimal expansion of 10^k + 1111 consists of a single '1' digit followed by k-4 '0' digits followed by four '1' digits. (See Example section.)
|
|
LINKS
|
|
|
EXAMPLE
|
101111 is prime, so 5 is in the sequence;
100000001111 is prime, so 11 is in the sequence.
|
|
PROG
|
(PARI) isok(n) = (n > 4) && isprime(10^n+1111); \\ Michel Marcus, Oct 15 2013
(Python)
from sympy import isprime, prime
def afind(limit, startk=5):
k, pow10 = startk, 10**startk
for k in range(startk, limit+1):
if isprime(pow10 + 1111): print(k, end=", ")
pow10 *= 10
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|