OFFSET
1,3
COMMENTS
Contains all primes from 5 onward. Are 8, 9 and 27 only composite numbers present?
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..5000
MATHEMATICA
b[n_, i_] := b[n, i] = Module[{p}, p = If[i < 1, 1, Prime[i]]; If[n == 0 || i < 1, 1, Max[b[n, i - 1], Table[p^j*b[n - p^j, i - 1], {j, 1, Log[p, n] // Floor}]]]]; g[n_] := b[n, If[n < 8, 3, PrimePi[Ceiling[1.328*Sqrt[n* Log[n] // Floor]]]]]; Join[{0}, Position[Table[GCD[n, g[n]], {n, 1, 500} ], 1] // Flatten] (* Jean-François Alcover, Mar 03 2016, after Alois P. Heinz *)
PROG
(Scheme with Antti Karttunen's IntSeq-library):
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 12 2013
STATUS
approved