login
Primes of the form (k+1)^k - k^k.
1

%I #14 Sep 05 2024 14:13:57

%S 5,37,4651,1273609

%N Primes of the form (k+1)^k - k^k.

%C a(5) has 372 decimal digits.

%o (PARI) f(n) = for(x=1,n,y=(x+1)^x-x^x; if(isprime(y),print1(y" ")))

%Y The values of k are in A098463.

%Y Primes in A055869.

%Y Cf. A085682.

%K nonn

%O 1,1

%A _Cino Hilliard_, Aug 21 2003