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!)
A242989 Numbers n such that concatenating 1 with four instances of n produces a prime. 4
37, 39, 49, 73, 97, 123, 139, 159, 211, 213, 219, 253, 273, 291, 313, 327, 337, 339, 369, 399, 409, 477, 481, 511, 529, 531, 579, 589, 607, 633, 643, 663, 697, 717, 723, 733, 753, 787, 789, 819, 831, 841, 891, 909, 919, 967, 987, 1041, 1117, 1131, 1281, 1377 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
159 is included because 1159159159159 is a prime.
MATHEMATICA
cQ[n_, i_]:=Module[{idn=IntegerDigits[n]}, PrimeQ[FromDigits[Flatten[ Join[ {1}, Table[ idn, {i}]]]]]]; Select[Range[2000], cQ[#, 4]&]
PROG
(Python)
from sympy import isprime
for n in range(10**3):
..if isprime('1'+4*str(n)):
....print(n, end=', ')
# Derek Orr, Aug 17 2014
(PARI) s=[]; for(n=1, 10^4, d=length(Str(n)); if(isprime(10^(4*d)+(10^(4*d)-1)/(10^d-1)*n), s=concat(s, n))); s \\ Jens Kruse Andersen, Aug 18 2014
CROSSREFS
Sequence in context: A111043 A041683 A064172 * A345481 A295801 A111198
KEYWORD
nonn,base,easy
AUTHOR
Harvey P. Dale, Aug 17 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 May 16 02:54 EDT 2024. Contains 372549 sequences. (Running on oeis4.)