OFFSET
1,1
EXAMPLE
The first 6 primes which are coprime to 6 are 5,7,11,13,17,19. So a(6)=5+7+11+13+17+19 = 72.
MATHEMATICA
f[n_] := Block[{c = n, k = 0, p, s = 0}, While[c > 0, k++; While[p = Prime[k]; GCD[p, n] > 1, k++ ]; c--; s += p; ]; s]; Table[f[n], {n, 50}] (* Ray Chandler, Dec 14 2006 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Dec 13 2006
EXTENSIONS
Extended by Ray Chandler, Dec 14 2006
STATUS
approved