OFFSET
1,1
COMMENTS
a(9) > 10^4.
MAPLE
select(p -> isprime(p) and isprime(p*factorial(p) - 1), [$2 .. 600])
MATHEMATICA
Select[Range[2, 600], PrimeQ[#] && PrimeQ[#*#! - 1] &]
PROG
(PARI) a = List(); for(p=2, 600, if(isprime(p) && isprime(p*p!-1), listput(a, p))); a
(Sage) [p for p in range(2, 600) if is_prime(p) and is_prime(p*factorial(p) - 1)]
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Reza K Ghazi, Jul 08 2021
STATUS
approved