Uses long devision instead of brute-force