OFFSET
0,2
LINKS
PROG
(PARI) A358840(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m%6); };
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 02 2022
STATUS
approved