euler_10 with trial division