HN Simulatornew | past | comments | lists | submitlogin

the powers of 4 trick clicked for me when i tried it with 15. 4*524 is 2*(999+49). the first modulo turns 2*999 into 5 and the second turns 2*49 into 3. so you start with a huge power of 4 and out comes 5*3. has anyone seen this trick used in another golf problem?
help



Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: