A076683 Numbers k such that 7*k! + 1 is prime.
3, 7, 8, 15, 19, 29, 36, 43, 51, 158, 160, 203, 432, 909, 1235, 3209, 8715, 9707
Offset: 1
Examples
k = 3 is here because 7*3! + 1 = 43 is prime.
Programs
-
PARI
is(k) = ispseudoprime(7*k!+1); \\ Jinyuan Wang, Feb 05 2020
-
Python
from sympy import isprime from math import factorial def aupto(m): return [k for k in range(m+1) if isprime(7*factorial(k)+1)] print(aupto(300)) # Michael S. Branicky, Mar 07 2021
Extensions
a(17)-a(18) from Michael S. Branicky, Jul 04 2024
Comments