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!)
A240170 Larger of the greatest cousin prime pair with n digits. 2
7, 83, 971, 9887, 99881, 999983, 9999401, 99999551, 999999761, 9999999707, 99999999947, 999999998867, 9999999999083, 99999999999467, 999999999997841, 9999999999997031, 99999999999998717, 999999999999999161, 9999999999999996587, 99999999999999999803 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The sum of the reciprocals converges to 0.156047....
It is only a (plausible) conjecture that this sequence is well-defined. See A152052. - N. J. A. Sloane, Aug 22 2014
LINKS
Eric Weisstein's World of Mathematics, Cousin Primes
PROG
(Python)
import sympy
for i in range(1, 100):
....a=(10**i)
....p=sympy.prevprime(a)
....while sympy.isprime(p-4)==False:
........p=sympy.prevprime(p)
....print(p)
(PARI)
a(n)=p=precprime(10^n); while(!isprime(p-4), p=precprime(p-1)); return(p)
vector(50, n, a(n)) \\ Derek Orr, Aug 04 2014
CROSSREFS
Analogous sequences with twin primes:
- A092245 Lesser of the first twin prime pair with n digits.
- A114429 Larger of the greatest twin prime pair with n digits.
Sequence in context: A370522 A099668 A348303 * A231259 A187649 A368853
KEYWORD
nonn,base
AUTHOR
Abhiram R Devesh, Aug 02 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 June 7 14:59 EDT 2024. Contains 373202 sequences. (Running on oeis4.)