login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A126703 Numbers k whose last k digits of k^k form a prime number. 0
143, 433, 1687, 3283, 14949 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MATHEMATICA
f[n_] := FromDigits[Take[IntegerDigits[n^n], -n]]; Do[If[PrimeQ[f[n]], Print[n]], {n, 8, 14949}] (* Ryan Propper, Apr 01 2007 *)
PROG
(Python)
from sympy import isprime
A126703_list = [n for n in range(1, 2000) if isprime(pow(n, n, 10**n))] # Chai Wah Wu, Mar 23 2018
CROSSREFS
Sequence in context: A261074 A213337 A156963 * A111185 A074301 A156635
KEYWORD
base,hard,more,nonn
AUTHOR
Shyam Sunder Gupta, Feb 11 2007
EXTENSIONS
One more term from Ryan Propper, Apr 01 2007
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 01:40 EDT 2024. Contains 371696 sequences. (Running on oeis4.)