The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A128942 Numbers n such that the next prime exceeding 10^n is a twin prime member. 0
1, 2, 4, 9, 537, 1322, 1476 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
A003617(a(n)) is in A001097 (Twin primes).
LINKS
EXAMPLE
For n=2, 10^2 = 100. The first prime > 100 is 101 which is a member of the twin prime pair 101,103.
MATHEMATICA
tpQ[n_]:=Module[{pr=NextPrime[10^n]}, Or@@PrimeQ[{pr-2, pr+2}]]; Select[ Range[ 1500], tpQ] (* Harvey P. Dale, Aug 05 2012 *)
PROG
(PARI) g(n)=for(x=1, n, y=nextprime(10^x); if(ispseudoprime(y+2), print1(x", ")))
CROSSREFS
Sequence in context: A269739 A065299 A292114 * A364637 A328837 A302349
KEYWORD
hard,more,nonn
AUTHOR
Cino Hilliard, Apr 28 2007
EXTENSIONS
Edited by Ray Chandler, May 12 2007
a(6), a(7) from Donovan Johnson, Feb 21 2008
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 28 22:13 EDT 2024. Contains 372921 sequences. (Running on oeis4.)