small update on a projecteuler problem and general math problem