Seive function

Revision en1, by jash2703, 2024-09-17 11:30:27

Can any one solve this

C++ code N^(f(X)) mod M

f(X) is defined as product of primes upto X

1<=N,M<=10^9

1<=X<=10^6

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English jash2703 2024-09-17 11:30:27 148 Initial revision (published)