OFFSET
1,1
COMMENTS
More generally, let prime_Y consist of the numbers n >= 2+Y which never yield a remainder of Y when divided by any number from 2+Y to n-Y-1. Prime_0 are the usual primes, A000040. This sequence gives prime_2.
FORMULA
P[n, Y] = P[n-1, Y] for most terms where P is a Boolean array of numbers n and Y their order of primeness: if P[n, Y] then n is a prime of order Y
MATHEMATICA
Select[Range[3, 500], Count[Table[Mod[#, k], {k, 3, #-2}], 1]==0&] (* Harvey P. Dale, Dec 17 2011 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Chas A Guderjahn (chasag(AT)aol.com), Oct 01 2003
EXTENSIONS
More terms from Harvey P. Dale, Dec 17 2011
STATUS
approved