ProjectEuler7 + some other problems