OFFSET
1,1
COMMENTS
If the value of the terminal prime is given rather than its index in the list of odd primes, the sequence becomes 7 19 29 43 103 103 191 137 347 311 439
In other words, the odd primes no larger than 7 form a complete residue set mod 3, the odd primes no larger than 19 form a complete residue set mod 5, and so forth
MATHEMATICA
Table[p=Prime[n]; k=1; While[u=Union[Mod[Prime[Range[2, k]], p]]; u != Range[0, p-1], k++ ]; k-1, {n, 2, 100}] (* T. D. Noe, Apr 02 2010 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Keith Backman, Mar 30 2010
STATUS
approved