A100605 Numbers k such that (prime(k)-1)! + prime(k)^2 is prime.
1, 2, 4, 10, 26
Offset: 1
Examples
a(3) = 4 because (prime(4)-1)! + prime(4)^2 = (7-1)! + 7^2 = 720 + 49 = 769 is prime and is the 3rd such prime of that form.
Programs
-
PARI
is(k) = ispseudoprime((prime(k)-1)! + prime(k)^2); \\ Jinyuan Wang, Apr 10 2020
Formula
Numbers k such that (prime(k)-1)! + prime(k)^2 is prime, where prime(k) is the k-th prime.
Comments