Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A105436
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A105436 Smallest prime which stays prime when a string of n 1's is appended to it. +0
2
2, 3, 2, 2, 13, 3, 29, 7, 17, 17, 3, 3, 2, 3, 197, 5, 13, 173, 2, 13, 53, 73, 199, 2, 23, 73, 599, 239, 547, 59, 409, 1009, 1277, 19, 3, 383, 137, 13, 653, 103, 139, 227, 19, 127, 359, 193, 1123, 3, 97, 1447, 839, 109, 3, 47, 17, 7, 269, 2, 1657, 1973, 709, 5233, 809 (list; graph; listen)
OFFSET

0,1

EXAMPLE

a(2)=2 because it is the first prime followed by 3,41,101,107,113,137,... all remaining primes when 11 is appended to each of them.

MAPLE

with(numtheory); for n from 1 to 100 do for i from 1 to 5000 do if isprime(ithprime(i)*10^n + sum(10^j, j=0..n-1)) then printf(`%d, `, ithprime(i)); break; fi: od:od: (Sellers)

MATHEMATICA

f[n_] := Block[{k = 1, t = Table[1, {n}]}, While[id = IntegerDigits[ Prime[k]]; id[[ -1]] == 1 || !PrimeQ[ FromDigits[ Join[id, t]]], k++ ]; Prime[k]]; Table[ f[n], {n, 0, 62}] (from Robert G. Wilson v (rgwv(AT)rgwv.com), Apr 09 2005)

CROSSREFS

Cf. A105437, A065821.

Sequence in context: A134142 A138680 A123703 this_sequence A059905 A014836 A085032

Adjacent sequences: A105433 A105434 A105435 this_sequence A105437 A105438 A105439

KEYWORD

nonn,base

AUTHOR

Lekraj Beedassy (blekraj(AT)yahoo.com), Apr 08 2005

EXTENSIONS

More terms from Robert G. Wilson v (rgwv(AT)rgwv.com) and James A. Sellers (sellersj(AT)math.psu.edu), Apr 09 2005

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 10 12:37 EST 2009. Contains 170569 sequences.


AT&T Labs Research