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”).

A068678
Numbers that yield a prime when a 9 is prefixed or suffixed to them.
0
7, 19, 37, 41, 47, 71, 83, 91, 103, 127, 157, 161, 187, 199, 203, 209, 239, 257, 281, 293, 311, 349, 371, 377, 391, 413, 421, 433, 463, 467, 479, 491, 511, 539, 547, 551, 587, 619, 629, 661, 677, 689, 721, 749, 769, 787, 791, 803, 817, 859, 871, 883, 923
OFFSET
1,1
EXAMPLE
127 is a member as both 1279 and 9127 are primes.
MAPLE
i := 0:for k from 1 to 3200 do if(isprime(9+10*k) and isprime(k+10^(ceil(evalf(log(k+1)/log(10))))*9)) then s[i] := k; i := i+1; end if; end do:q := seq(s[j], j=0..i-1);
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Mar 02 2002
EXTENSIONS
More terms from Sascha Kurz, Mar 17 2002
STATUS
approved