OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
5,7,11,13,17,19,23,... is the sequence of primes which are coprime to 6. 19 is the 6th such prime, so a(6) = 19.
MAPLE
f:= n -> ithprime(n + nops(numtheory:-factorset(n)));
map(f, [$1..100]); # Robert Israel, Sep 28 2023
MATHEMATICA
With[{prs=Prime[Range[1000]]}, Table[Select[prs, CoprimeQ[#, n]&][[n]], {n, 60}]] (* Harvey P. Dale, Aug 27 2014 *)
Table[Prime[n + PrimeNu[n]], {n, 60}] (* Jon Maiga, Jan 05 2019 *)
PROG
(PARI) {m=59; for(n=1, m, q=2; k=n; while(k>0, p=q; if(gcd(p, n)==1, k--); q=nextprime(p+1)); print1(p, ", "))} \\ Klaus Brockhaus, Aug 15 2006
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Aug 03 2006
EXTENSIONS
More terms from Klaus Brockhaus, Aug 15 2006
STATUS
approved