OFFSET
1,2
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1)=1 because the 1st composite is 4 = 2^2 = (1st prime)^2.
a(4)=33 because the 33rd composite is 49 = 7^2 = (4th prime)^2;
MAPLE
c:=proc(n) if isprime(n)=false then n else fi end: C:=[seq(c(n), n=2..53000)]: a:=proc(n) local ct, i: ct:=0: for i from 1 while C[i]<=ithprime(n)^2 do ct:=ct+1: od: end: seq(a(n), n=1..50); # Emeric Deutsch, Jul 26 2006
PROG
(Python)
from sympy import prime, compositepi
A120389_list = [compositepi(prime(i)**2) for i in range(1, 101)] # Chai Wah Wu, Apr 21 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Jun 30 2006
EXTENSIONS
More terms from Emeric Deutsch, Jul 26 2006
STATUS
approved