OFFSET
1,1
COMMENTS
FORMULA
a(n) = A181097(n) for first 14 terms.
EXAMPLE
MATHEMATICA
nn = 191; t1 = Select[Range[nn], # == 1 || PrimeQ[#] &]; t2 = Complement[Range[nn], t1]; t = Range[nn]; Do[temp = t[[t1[[i]]]]; t[[t1[[i]]]] = t[[t2[[i]]]]; t[[t2[[i]]]] = temp, {i, Length[t1]}]; Take[t, Position[t, t1[[-1]]][[1, 1]]] (* T. D. Noe, Feb 13 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Feb 12 2012
STATUS
approved