def solution(self): seq = euler.make_fibonacci_sequence(1, 2, 4 * 1000 * 1000) return sum([number for number in seq if euler.is_factor(2, number)])
def solution(self): sum = 0 for number in range(1, 1000): sum += number if euler.is_factor(3, number) or euler.is_factor(5, number) else 0 return sum