DIANE - Editorial

your code will give wrong output when d > 1e5 but not divisible by 99998