Project Euler #236: Luxury Hampers

  • + 0 comments
    1. Loop over A spoilage as(i) in [1;a(i)[ range;
    2. Use GCD to reduce fractions;
    3. Overall timing for n=5 should be near 0.01 s.