Problem #4 on euler, via brute force