login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A108757
Numbers n such that 1000n + 911 is prime.
0
0, 3, 6, 12, 17, 18, 21, 23, 30, 32, 33, 35, 41, 47, 56, 69, 72, 80, 83, 87, 90, 93, 95, 96, 98, 102, 104, 116, 117, 123, 132, 135, 137, 149, 153, 159, 161, 164, 167, 188, 191, 194, 201, 203, 206, 210, 216, 219, 224, 228, 233, 237, 242, 243, 245, 249, 252, 254
OFFSET
1,2
EXAMPLE
0 is in the sequence because 1000*0+911 = 911 is prime.
32 is in the sequence because 1000*32+911 = 32911 is prime.
MAPLE
c:=proc(x, y) local s: s:=proc(m) nops(convert(m, base, 10)) end: x*10^s(y)+y: end: a:=proc(n) if isprime(c(n, 911))=true then n else fi end: seq(a(n), n=0..360); # c is the process which concatenates two positive integers # Emeric Deutsch, Aug 07 2005
PROG
(Magma) [ n: n in [0..300] | IsPrime(1000*n+911) ];
(PARI) is(n)=isprime(1000*n+911) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
Sequence in context: A109735 A086538 A127563 * A323645 A307042 A146952
KEYWORD
nonn,easy
AUTHOR
Parthasarathy Nambi, Jul 25 2005
EXTENSIONS
More terms from Emeric Deutsch, Aug 07 2005
STATUS
approved