OFFSET
1,1
EXAMPLE
8 is the 3rd composite. 3,5,7,11,... is the sequence of primes which are coprime to 8. 7 is the 3rd term of these primes, so a(3) = 7.
PROG
(PARI) {m=60; c=1; for(n=1, m, c++; while(isprime(c), c++); q=2; k=n; while(k>0, p=q; if(gcd(p, c)==1, k--); q=nextprime(p+1)); print1(p, ", "))} - (Klaus Brockhaus, Aug 15 2006)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Aug 04 2006
EXTENSIONS
More terms from Klaus Brockhaus, Aug 15 2006
STATUS
approved