Modular exponent returns wrong answer

Issue #864 new
Former user created an issue

mod(2^300;3) = 0

No power of two is divisible by 3. This is probably a rounding issue. I think it would be best if SpeedCrunch didn't return anything at all when one of mod's inputs is beyond a certain threshold.

Comments (1)

  1. Helder Correia repo owner

    I get the following on latest development code:

    mod(2^300;3)
    = 1
    

    What version are you on?

  2. Log in to comment