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

Правка en1, от 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)

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский RealAryan 2025-01-04 13:09:35 467 Initial revision (published)