OFFSET
1,1
COMMENTS
Subset of numbers that are divisible by exactly 3 primes (counted with multiplicity), also known as triprimes or 3-almost primes, A014612. Subset of {d = p_1 * p_2 * ... * p_m where p_i == 1 (mod 8), 1 <= i <= m are distinct primes} as occurs in Wei, p.2.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
Dasheng Wei, On the equation x^2-Dy^2=n, Feb 18, 2011.
FORMULA
MATHEMATICA
p = Select[Prime[Range[100]], Mod[#, 8] == 1 &]; Sort[Reap[Do[n = p[[i]] p[[j]] p[[k]]; If[n <= p[[1]] p[[2]] p[[-1]], Sow[n]], {i, 2, Length[p]}, {j, i - 1}, {k, j - 1}]][[2, 1]]]
PROG
(PARI) list(lim)=my(v=List(), u=v, t); forprime(p=2, lim\697, if(p%8==1, listput(u, p))); for(i=1, #u-2, for(j=i+1, #u-1, if(u[i]*u[j]*u[j+1]>lim, break); for(k=j+1, #u, t=u[i]*u[j]*u[k]; if(t>lim, break); listput(v, t)))); Set(v) \\ Charles R Greathouse IV, Jan 31 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jonathan Vos Post, Feb 20 2011
STATUS
approved