OFFSET
1,2
COMMENTS
Since limsup(prime(n)) is infinity, it is easy to see that the sequence contains all even numbers. So it is natural to conjecture that the sequence is a permutation of the positive integers.
LINKS
Peter J. C. Moses, Table of n, a(n) for n = 1..1000
MATHEMATICA
seq={1}; Do[cmplSeq=Complement[Range[2*Max[seq]], seq];
If[PrimeQ[n], AppendTo[seq, n], AppendTo[seq, Min[Select[cmplSeq, GCD[Last[seq], #]>1&]]]], {n, 2, 100}]; seq (* Ivan N. Ianakiev, Apr 25 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, Apr 22 2015
EXTENSIONS
More terms from Peter J. C. Moses, Apr 22 2015
STATUS
approved