Miller Rabin Primality Test

Revision en1, by FayedAnik_, 2018-10-30 21:36:40

Hi!every one! I am stuck in this problem https://www.spoj.com/problems/PON/ ! I am trying to solve it with miller rabin primality test. But got tle :-( my solution can be found here https://ideone.com/eSoJpz Can anyone help ? thanks in advance :-)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English FayedAnik_ 2018-10-30 21:36:40 275 Initial revision (published)