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!)
A034809 Numbers k such that the concatenation of k and previous_prime(k) is a prime. 2
4, 5, 9, 10, 16, 24, 33, 36, 42, 46, 51, 53, 56, 59, 63, 66, 67, 69, 75, 76, 78, 81, 87, 96, 102, 106, 108, 111, 114, 116, 123, 125, 129, 130, 135, 137, 144, 145, 147, 148, 153, 156, 159, 170, 171, 177, 179, 180, 184, 187, 190, 192, 195, 196, 198, 207, 211, 214 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
Jon E. Schoenfield, Table of n, a(n) for n = 1..10000 (first 1001 terms from Harvey P. Dale)
EXAMPLE
k=156 is a term because the largest prime < 156 is 151 and '156151' is a prime.
MATHEMATICA
Select[Range[250], PrimeQ[FromDigits[Join[IntegerDigits[#], IntegerDigits[ NextPrime[ #, -1]]]]]&] (* Harvey P. Dale, Jul 10 2017 *)
PROG
(Python)
from sympy import isprime, prevprime
def ok(n): return isprime(int(str(n) + str(prevprime(n))))
print(list(filter(ok, range(3, 215)))) # Michael S. Branicky, Apr 05 2021
CROSSREFS
Sequence in context: A189889 A329451 A308578 * A336900 A096808 A067261
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Oct 15 1998
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 17 12:26 EDT 2024. Contains 372600 sequences. (Running on oeis4.)