Fastest way of finding a Factorial modulo p (where p is prime number) ?

Revision en1, by RealAryan, 2025-01-04 13:09:35

The fastest implementation which i can find is $$$O(p + log_p n)$$$ from here

But from what I have heard there is a faster way of calculating it which might lead to the solution of this problem

Does anyone have a code implementation of it? (Since I can't find it anywhere on the internet)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English RealAryan 2025-01-04 13:09:35 467 Initial revision (published)