A343494 Numbers k such that tau(k) and tau(k+1) are both prime, where tau is the number of divisors function.
2, 3, 4, 16, 65536
Offset: 1
Examples
16 is a term because tau(16) = 5 and tau(17) = 2 and 5 and 2 are prime. 147 is not a term because tau(147) = 6 and tau(148) = 6 and 6 is not prime. 157 is not a term because tau(157) = 2 and tau(158) = 4 and 2 is prime but not 4.
Programs
-
Mathematica
Select[Range[1000000], PrimeQ[DivisorSigma[0, #]] && PrimeQ[DivisorSigma[0, #+1]] &] (* Vaclav Kotesovec, Apr 19 2021 *)
-
PARI
for(k=1,1e8,if(isprime(numdiv(k)) && isprime(numdiv(k+1)),print1(k", ")))
Comments