News for hackers. Stuff that matters.
Re:Euler's Fizzbuzz (2020) by ersatz_username on Tuesday March 16, 2021 @09:40PM (#26485519)
You’ve got a factor of three sneaking into your 4^4.

In general (ab) mod n == (a mod n)(b mod n) mod n

In the case of (3*c)^4, 3^4 mod 15 -> 108 mod 15 -> 3.

There are no comments on this comment yet.