OFFSET
1,1
COMMENTS
Any multiple of an element of this sequence is in the sequence. The primitive elements of this sequence are A062457.
The asymptotic density of this sequence is 1 - Product_{k>=1} (1 - 1/prime(k)^k) = 0.55929756713969708790... - Amiram Eldar, Apr 06 2021
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
N:= 1000: # to get all terms <= N
S:= {}:
for i from 1 do
v:= ithprime(i)^i;
if v > N then break fi;
S:= S union {seq(j, j=v..N, v)};
od:
sort(convert(S, list)); # Robert Israel, Mar 27 2018
MATHEMATICA
seq[max_] := Module[{s = {}, p = 2, i = 1, q = 2}, While[q < max, s = Join[s, Range[q, max, q]]; p = NextPrime[p]; i++; q = p^i]; Union[s]]; seq[120] (* Amiram Eldar, Apr 06 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Franklin T. Adams-Watters, May 19 2006
EXTENSIONS
An incorrect g.f. was deleted by N. J. A. Sloane, Sep 13 2009
STATUS
approved