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!)
A068645 Primes in which a string of 3's is sandwiched between two 1's. 9
11, 131, 13331, 1333331, 13333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333331 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(5) consists of 93 and a(6) consists of 159 3's sandwiched between two 1's. - Sascha Kurz, Mar 26 2002
a(8) has 1471 digits. - Michael S. Branicky, Jan 27 2023
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..7
Patrick De Geest, PDP Reference Table - 131.
MATHEMATICA
Select[Flatten[Table[10*FromDigits[PadRight[{1}, n, 3]]+1, {n, 120}]], PrimeQ] (* Harvey P. Dale, Aug 09 2020 *)
PROG
(Python)
from sympy import isprime
from itertools import count, islice
def agen(): yield from (t for i in count(0) if isprime(t:=int("1" + "3"*i + "1")))
print(list(islice(agen(), 7))) # Michael S. Branicky, Jan 27 2023
CROSSREFS
Sequence in context: A261689 A101334 A222872 * A097258 A044041 A158536
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Feb 28 2002
EXTENSIONS
More terms from Sascha Kurz, Mar 26 2002
Edited by Ray Chandler, Nov 04 2014
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 April 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)