←back to thread

76 points Fraterkes | 4 comments | | HN request time: 0.214s | source
1. AnotherGoodName ◴[] No.46185409[source]
A + B mod n seems much easier than this.
replies(2): >>46185422 #>>46185434 #
2. BoiledCabbage ◴[] No.46185422[source]
Yup
3. tomsmeding ◴[] No.46185434[source]
The method proposed is just A - B mod n. The two are entirely equivalent.
replies(1): >>46185485 #
4. AnotherGoodName ◴[] No.46185485[source]
A few extra steps to essentially manually do the mod part tbh. Would take their 20 line program to a 1 liner.