OFFSET
1,2
LINKS
Zak Seidov, Table of n, a(n) for n = 1..200
MATHEMATICA
CompositeQ[n_] := ! (Abs[n] == 1 || PrimeQ[n]); f[l_List] := Block[{pi = 1, d = Subtract @@@ Subsets[l, {2}], p}, While[p = Prime[pi]; Intersection[d, l - p] != {} || Nand @@ (CompositeQ /@ (l - p)), pi++ ]; Append[l, p]]; Nest[f, {1}, 46] (* Ray Chandler, Feb 12 2007 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Feb 18 2003
EXTENSIONS
Extended by Ray Chandler, Feb 12 2007
STATUS
approved