Commits

Shlomi Fish  committed 251a3ff

Euler #138 is working.

  • Participants
  • Parent commits 1887d1d

Comments (0)

Files changed (1)

File project-euler/128/euler-128.pl

 my $next_ring_len = 12;
 my $next_ring_start = 8;
 
-for my $ring (1 .. 10_000)
+my $ring = 1;
+while ($count < 2_000)
 {
     my $check_side_and_cell =
     sub {
 }
 continue
 {
+    $ring++;
     ( $prev_ring_len, $prev_ring_start, $ring_len, $ring_start ) =
     ($ring_len, $ring_start, $next_ring_len, $next_ring_start);