OFFSET
1,2
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..8001
EXAMPLE
1
2 3
5 7 11
4 6 8 9
13 17 19 23 29
10 12 14 15 16 18
...
MATHEMATICA
a = {1}; Do[a = Join[a, Take[Select[Complement[Range[Prime[PrimePi@Max@a + n]], a], ! (PrimeQ[#] \[Xor] PrimeQ[n]) &], n]], {n, 2, 12}]; a (* Ivan Neretin, May 23 2018 *)
CROSSREFS
KEYWORD
AUTHOR
Amarnath Murthy, Jun 01 2003
EXTENSIONS
Edited and extended by David Wasserman, Dec 27 2004
STATUS
approved