Permalink
Browse files

Try to rewrite the prime scripts to avoid := and sequence issues in o…

…lder Rakudos.
  • Loading branch information...
1 parent 0b7573c commit f9c4180b9b48a686753a4397b5a0c240611f1ca6 @colomon colomon committed Nov 10, 2010
Showing with 2 additions and 4 deletions.
  1. +1 −2 prime-2.pl
  2. +1 −2 prime.pl
View
@@ -14,6 +14,5 @@
}
}
-my @primes := 2, 3, &next-prime ... *;
+say (2, 3, &next-prime ... 2357).perl;
-say @primes[^350].perl;
View
@@ -7,6 +7,5 @@
}
}
-my @primes := 2, 3, &next-prime ... *;
+say (2, 3, &next-prime ... 541).perl;
-say @primes[^100].perl;

0 comments on commit f9c4180

Please sign in to comment.