OFFSET
1,1
COMMENTS
Also, the numbers which do not appear in sequence A267299 starting with 1 and such that a(n+1) is the least positive integer not occurring earlier which yields a prime when added to the last digit of a(n), cf. link to SeqFan post. - M. F. Hasler, Jan 20 2016
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..20000
E. Angelini, J. Mason and M. F. Hasler, A light variation, SeqFan list, Jan. 20, 2016
EXAMPLE
531 is in the sequence because it is the first term of the ten consecutive composites: 531=3^2*59; 532=2^2*7*19; 533=13*41; 534=2*3*89; 535=5*107; 536=2^3*67; 537=3*179; 538=2*269; 539=7^2*11; 540=2^2*3^3*5.
MATHEMATICA
Select[ Range[900], Union[ Table[ PrimeQ[i], {i, #, # + 9}]] == {False} &]
nn=1000; Transpose[Select[Partition[Complement[Range[nn], Prime[Range[ PrimePi[ nn]]]], 10, 1], Last[#]-First[#]==9&]][[1]] (* Harvey P. Dale, Jun 15 2011 *)
PROG
(PARI) is_A076150(n)=nextprime(n)>n+9 \\ M. F. Hasler, Jan 20 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Lekraj Beedassy, Oct 31 2002
EXTENSIONS
Corrected and extended by Ralf Stephan and others, Nov 01 2002
STATUS
approved