A259504 Numbers n such that n and n+1 are the product of exactly three (not necessarily distinct) primes.
27, 44, 75, 98, 116, 124, 147, 153, 164, 170, 171, 174, 230, 244, 245, 284, 285, 332, 356, 369, 387, 425, 428, 429, 434, 435, 474, 506, 507, 530, 548, 555, 574, 595, 602, 603, 604, 605, 609, 627, 637, 638, 645, 651, 657, 710
Offset: 1
Keywords
Examples
27=3*3*3, 28=2*2*7.
Links
- Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
Select[Range[1000], 3 == PrimeOmega[#] == PrimeOmega[# + 1] &]
-
PARI
forcomposite(n=1, 1e3, if(bigomega(n)==3 && bigomega(n+1)==3, print1(n, ", "))); \\ Altug Alkan, Nov 08 2015
-
PARI
list(lim)=my(v=List(),was=1,is); forfactored(n=28,lim\1+1, is=vecsum(n[2][,2])==3; if(is && was, listput(v,n[1]-1)); was=is); Vec(v) \\ Charles R Greathouse IV, Jun 26 2019
Comments