[go: up one dir, main page]

login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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.)
a(18) > 40000. - Michael S. Branicky, Aug 07 2024
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
afind(800) # Michael S. Branicky, Jan 22 2022
CROSSREFS
Sequence in context: A024921 A189978 A192761 * A228485 A161896 A317909
KEYWORD
nonn,base,more
AUTHOR
Zak Seidov, Dec 06 2008
EXTENSIONS
Comments and example edited by Jon E. Schoenfield, Jan 14 2015
a(15)-a(17) from Michael S. Branicky, Jan 22 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 30 00:57 EDT 2024. Contains 375520 sequences. (Running on oeis4.)