%I #17 Oct 19 2015 12:57:29
%S 2,3,4,5,7,8,9,11,13,17,19,23,25,27,29,31,37,41,43,47,49,53,59,61,67,
%T 71,73,79,83,89,97,101,103,107,109,113,121,125,127,131,137,139,149,
%U 151,157,163,167,169,173,179,181,191,193,197,199,211,223,227,229,233,239,241
%N Primes, squares of primes and cubes of primes.
%H Vincenzo Librandi, <a href="/A087797/b087797.txt">Table of n, a(n) for n = 1..1000</a>
%F a(n) ~ n log n. - _Charles R Greathouse IV_, Oct 19 2015
%t m=400;Union[Prime[Range[PrimePi[m]]],Prime[Range[PrimePi[m^(1/2)]]]^2,Prime[Range[PrimePi[m^(1/3)]]]^3] (* _Vladimir Joseph Stephan Orlovsky_, Apr 11 2011 *)
%t With[{nn=70},Take[Union[Flatten[{#,#^2,#^3}&/@Prime[Range[nn]]]],nn]] (* _Harvey P. Dale_, Oct 16 2012 *)
%o (PARI) is(n)=my(t=isprimepower(n)); t && t<4 \\ _Charles R Greathouse IV_, Oct 19 2015
%Y Cf. A000430, A002760.
%K nonn
%O 1,1
%A _Benoit Cloitre_, Oct 10 2003
|