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!)
A114755 Smallest prime of the form: n successive positive integers in ascending order followed by a 3. a(3k) = 0 as no such prime exists. 7
13, 233, 0, 12343, 345673, 0, 5678910113, 54555657585960613, 0, 373839404142434445463, 17181920212223242526273, 0, 2345678910111213143, 23242526272829303132333435363, 0, 8910111213141516171819202122233 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
a(4) = 12343, four successive positive integers 1,2,3,4 in ascending order followed by a 3.
MATHEMATICA
a[n_]:=If[Mod[n, 3]==0, 0, (For[m=1, (v={}; Do[v=Join[v, IntegerDigits[k]], {k, m, m+n-1}]); !PrimeQ[10FromDigits[v]+3], m++ ]; 10FromDigits[v]+3)]; Table[a[n], {n, 17}] - Farideh Firoozbakht
f[n_] := Block[{t = Range@n}, If[ Mod[n, 3] == 0, 0, While[p = FromDigits@Flatten@IntegerDigits@Join[t, {3}]; !PrimeQ@p, t++ ]; p]]; Array[f, 20] (* Robert G. Wilson v *)
CROSSREFS
Sequence in context: A176722 A083081 A083306 * A142610 A218202 A134493
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Jan 01 2006
EXTENSIONS
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.)