OFFSET
1,1
COMMENTS
The primes p and q may be the same.
LINKS
Zak Seidov, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = 2*p + 3*q, for some primes p and q.
a(n) > 3n + O(n/log n). - Charles R Greathouse IV, Dec 04 2012
EXAMPLE
13 = 2*2 + 3*3, with p = 2 and q = 3.
MATHEMATICA
mx = 130; Union@ Flatten@ Table[ 2Prime[i] + 3Prime[j], {i, PrimePi[mx/2]}, {j, PrimePi[(mx - 2Prime[i])/3]}] (* Robert G. Wilson v, Dec 12 2012 *)
PROG
(PARI) for(i=1, 200, for(j=1, i/2, k=floor((i-2*j)/3); if(i-2*j-3*k, if(isprime(j), if(isprime(k), print(i); break, )))))
(PARI) list(lim)=my(v=vectorsmall(lim\1), u=List()); forprime(p=2, lim\2, forprime(q=2, (lim-2*p)\3, v[2*p+3*q]=1)); for(i=1, #v, if(v[i], listput(u, i))); Vec(u) \\ Charles R Greathouse IV, Dec 03 2012
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Randy L. Ekl, Feb 01 2003
EXTENSIONS
Missing term, 100 (equal to 2 * 47 + 3 * 2), added by Zak Seidov, Dec 02 2012
STATUS
approved