Playing with Divisors

Limits: 2s, 256 MB

Your best friend is attending math class at the university. Teacher gave him two problems during the class.


This is a companion discussion topic for the original entry at https://toph.co/p/playing-with-divisors