login
Numbers n such that n^2 - 5n + 5 is prime.
0

%I #16 Jun 21 2020 05:37:39

%S 5,6,7,8,9,11,12,13,14,16,18,19,22,23,24,27,29,31,33,34,38,41,42,44,

%T 47,48,49,51,53,56,57,58,59,62,63,67,68,69,71,73,79,86,88,89,92,96,97,

%U 99,103,104,106,117,118,123,128,129,133,134,137,141,143,144,147,148,151,152,156,157,158,161,162,163,166,167,172

%N Numbers n such that n^2 - 5n + 5 is prime.

%D M. Cerasoli, F. Eugeni and M. Protasi, Elementi di Matematica Discreta, Bologna 1988.

%D Emanuele Munarini and Norma Zagaglia Salvi, Matematica Discreta, UTET, CittaStudiEdizioni, Milano 1997.

%F a(n) = A002328(n)+2.

%o (PARI) is(n)=isprime(n^2-5*n+5) \\ _Charles R Greathouse IV_, Jun 13 2017

%Y Cf. A002328.

%K easy,nonn

%O 1,1

%A _Giovanni Teofilatto_, Dec 27 2003

%E Corrected and extended by _Georg Fischer_, Jun 20 2020