←back to thread

76 points Fraterkes | 2 comments | | HN request time: 0s | source
Show context
AnotherGoodName ◴[] No.46185409[source]
A + B mod n seems much easier than this.
replies(2): >>46185422 #>>46185434 #
1. tomsmeding ◴[] No.46185434[source]
The method proposed is just A - B mod n. The two are entirely equivalent.
replies(1): >>46185485 #
2. 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.