OFFSET
1,2
LINKS
Michel Marcus, Table of n, a(n) for n = 1..1000
Zak Seidov, A073920 [From Zak Seidov, Apr 15 2009]
MATHEMATICA
a = {1}; Do[k = 3; While[Nand[! MemberQ[a, k], Xor @@ Map[PrimeQ, {k, n}]], k += 2]; AppendTo[a, k], {n, 2, 64}]; a (* Michael De Vlieger, Mar 30 2017 *)
PROG
(PARI) nextcomposite(c) = until (!isprime(c), c +=2); c;
lista(nn) = {print1(1, ", "); p = 2; c = 1; for (n=2, nn, if (isprime(n), c = nextcomposite(c); print1(c, ", "), p = nextprime(p+1); print1(p, ", ")); ); } \\ Michel Marcus, Apr 01 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Aug 19 2002
EXTENSIONS
Extended and edited by T. D. Noe, Apr 13 2009
STATUS
approved