You are viewing a single comment's thread. Return to all comments →
def solve(a, m): # Write your code here
p=int(((m-1)/2)) l=(a**p)%m if l==1: return "YES" return "NO" why is this giving over time
Seems like cookies are disabled on this browser, please enable them to open this website
Euler's Criterion
You are viewing a single comment's thread. Return to all comments →
def solve(a, m): # Write your code here