a(n) is the smallest number m such that m^m-n is prime, or zero if there is no such m.

A166853

a(n) is the smallest number m such that m^m-n is prime, or zero if there is no such m.

Terms

    a(0) =2a(1) =2a(2) =8a(3) =3a(4) =4a(5) =5a(6) =6a(7) =3a(8) =0a(9) =3a(10) =78a(11) =13a(12) =6a(13) =3a(14) =4a(15) =3a(16) =4a(17) =17a(18) =12a(19) =3a(20) =118a(21) =3a(22) =4a(23) =3a(24) =3

External references