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!)
A090151 Primes of the form identical digits preceded by a 3. 2
3, 31, 37, 311, 311111, 31111111111, 311111111111, 377777777777, 31111111111111, 377777777777777777, 31111111111111111111111111111111111, 311111111111111111111111111111111111111111111111 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MATHEMATICA
Select[ FromDigits /@ Flatten[ Table[ PadRight[{3}, i, # ] & /@ {1, 2, 3, 4, 5, 6, 7, 8, 9}, {i, 2, 24}], 1], PrimeQ[ # ] &]
Select[Union[Flatten[Table[FromDigits[PadRight[{3}, n, c]], {n, 1000}, {c, {1, 7}}]]], PrimeQ] (* Harvey P. Dale, Oct 03 2022 *)
PROG
(Python)
from sympy import isprime
def afind(terms):
print(3, end=", ")
digits, n = 1, 1
while n < terms:
for id in "17":
t = int('3' + id*digits)
if isprime(t): print(t, end=", "); n += 1
digits += 1
afind(12) # Michael S. Branicky, Mar 31 2021
CROSSREFS
Sequence in context: A154502 A046282 A045709 * A198187 A198019 A198018
KEYWORD
nonn,base
AUTHOR
Robert G. Wilson v, Nov 22 2003
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 May 5 17:06 EDT 2024. Contains 372276 sequences. (Running on oeis4.)