login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A343495 Numbers k such that tau(k) and tau(k+2) are both prime, where tau is the number of divisors function (the lesser of twin prime pairs are excluded). 1
2, 7, 9, 23, 47, 79, 81, 167, 359, 727, 839, 1367, 1847, 2207, 2399, 3719, 5039, 7919, 10607, 11447, 14639, 16127, 17159, 19319, 28559, 29927, 36479, 44519, 49727, 54287, 57119, 59049, 66047, 85847, 97967, 113567, 128879, 177239, 196247, 201599, 218087, 241079, 273527, 292679 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The lesser of twin prime pairs are excluded from this sequence since they are trivial terms; indeed twin primes have only two divisors by definition of primes (1 and themselves) and 2 is prime.
Considering the first 10^8 positive integers, we note the following: 276 of them meet the definition and only three (9, 81 and 59049, respectively the 3rd, 7th and 32nd terms of the sequence) are composite numbers and moreover perfect squares (9 = 3^2, 81 = 9^2 and 59049 = 243^2). All the other 273 terms are prime. From the 8th, all terms end with 7 or 9. The 276th term of the sequence is 98982599.
Open questions: are there any other terms greater than 98982599 that are composite numbers and more specifically perfect squares? If not, are there any other terms greater than 98982599 also prime but not ending with 7 or 9?
Not less than 10^15. - David A. Corneth, Apr 18 2021
LINKS
EXAMPLE
9 is a term because tau(9) = 3 and tau(11) = 2 and 3 and 2 are prime.
47 is a term because tau(47) = 2 and tau(49) = 3 and 2 and 3 are prime.
48 is not a term because tau(48) = 10 and tau(50) = 6 and 10 and 6 are not prime.
MATHEMATICA
Select[Range@100000, And@@PrimeQ@DivisorSigma[0, {#, #+2}]&&Nand@@PrimeQ[{#, #+2}]&] (* Giorgos Kalogeropoulos, Apr 27 2021 *)
PROG
(PARI) upto(n) = print1(2", "); forstep(k=1, n, 2, if(isprime(numdiv(k)) && isprime(numdiv(k+2)) && (numdiv(k)!=2 || numdiv(k+2)!=2), print1(k", ")))
(PARI) upto(n) = {my(res = List([2])); n+=2; forprime(e = 3, logint(n, 3), forprime(p = 3, sqrtnint(n, e-1), c = p^(e-1); if(isprime(numdiv(c-2)), listput(res, c-2) ); if(isprime(numdiv(c+20)), listput(res, c) ) ) ); Set(res) } \\ David A. Corneth, Apr 18 2021
CROSSREFS
Sequence in context: A174247 A343963 A321322 * A065139 A093916 A042451
KEYWORD
nonn
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 7 09:38 EDT 2024. Contains 372302 sequences. (Running on oeis4.)