View Single Post
Old 2021-01-02, 01:56   #3
a1call
 
a1call's Avatar
 
"Rashid Naimi"
Oct 2015
Remote to Here/There

22×503 Posts
Default

Re: Hint #4
if m=Mod(a,p)
Unless p is prime, iterations of
m=m/c
where c iterates from (p-1)/2 to 2 or vise versa will definitely fail to evaluate at some point which is what the code checks.

Thank you for your time.

Last fiddled with by a1call on 2021-01-02 at 02:05
a1call is offline   Reply With Quote