OFFSET
1,2
COMMENTS
First deviation from A259020 is at a(15).
1 together with squarefree semiprimes (A006881) k such that k^2 + 1 is prime. Without the squarefree restriction there will be only one more term, 4. - Amiram Eldar, Sep 25 2022
LINKS
Danny Rorabaugh, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = 2*A052291(n) for n > 1. - Amiram Eldar, Sep 25 2022
EXAMPLE
The number 10 is in sequence because 10^2 = 1*2*5*10 = 100 and simultaneously 101 is prime.
MATHEMATICA
Prepend[2*Select[Prime[Range[2, 300]], PrimeQ[4 #^2 + 1] &], 1] (* Amiram Eldar, Sep 25 2022 *)
PROG
(Magma) [Floor(Sqrt(n-1)): n in [1..10000000] | IsPrime(n) and n-1 eq (&*(Divisors(Floor(Sqrt(n-1)))))]
(Sage) a = [n for n in range(1, 100000) if is_prime(n^2+1) and n^2==prod(list(divisors(n)))] # Danny Rorabaugh, Sep 21 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Sep 01 2015
STATUS
approved