Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Try to rewrite the prime scripts to avoid := and sequence issues in o…
…lder Rakudos.
  • Loading branch information
colomon committed Nov 10, 2010
1 parent 0b7573c commit f9c4180
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions prime-2.pl
Expand Up @@ -14,6 +14,5 @@
}
}

my @primes := 2, 3, &next-prime ... *;
say (2, 3, &next-prime ... 2357).perl;

say @primes[^350].perl;
3 changes: 1 addition & 2 deletions prime.pl
Expand Up @@ -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.