Project Euler problem: Semidivisible numbers