Annual Appeal: Please make a donation (tax deductible in USA) to keep the OEIS running. Over 5000 articles have referenced us, often saying "we discovered this result with the help of the OEIS".
%N Numbers n such that n^n + 10 is prime.
%C Here we interpret 0^0 as 1.
%C No more terms < 500. - _Stefan Steinerberger_, Mar 15 2006
%t Select[Range, PrimeQ[ #^# + 10] &] (* _Stefan Steinerberger_, Mar 15 2006 *)
%o (PARI) f1(n,a) = for(x=0,n,y=x^x+a;if(ispseudoprime(y),print1(y",")))
%A _Cino Hilliard_, Jan 07 2005