OFFSET
1,1
COMMENTS
Inspired by A340868 and the comment there.
EXAMPLE
The 942th to the 945th primes are 7433, 7451, 7457 and 7459. Since 7433^7451 == 7457 mod 7459, 942 is in the sequence.
PROG
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Chai Wah Wu, Jan 24 2021
EXTENSIONS
a(4) from Daniel Suteu, Jan 26 2021
STATUS
approved