← RoseCode

ROSECODE 279

Wilson quotient

Philippe_57721 · Programming ·

Given a prime number p, we define the Wilson quotient as:
Wp=(p1)!+1p
and its residue modulo p as:
wp=Wp modulo p in the interval p2wp<p2

Find w200000039
[My timing: 45 sec]