Commits

Shlomi Fish  committed 5db185d

More deduction

  • Participants
  • Parent commits 749a0a0

Comments (0)

Files changed (1)

File project-euler/152/euler-152-take3.pl

 @keys = @keys[grep { $ints[$_] % 2 == 0 } keys(@keys)];
 calc_stuff();
 
+# Deduced by semi-manual deduction.
+@keys = @keys[grep { $ints[$_] % 7 == 0 } keys(@keys)];
+calc_stuff();
+
+# Deduced by semi-manual deduction.
+@keys = @keys[grep { $ints[$_] % 9 == 0 } keys(@keys)];
+calc_stuff();
+
+# Deduced by semi-manual deduction.
+@keys = @keys[grep { $ints[$_] % 15 != 1 } keys(@keys)];
+calc_stuff();
+
 print join("\n", @ints), "\n";
 print "TARGET ==\n$target\n";