This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Finds prime numbers up to the value of the first argument or 100. | |
// Terribly inefficient but fun. | |
// Source: http://www.cs.dartmouth.edu/~doug/sieve/sieve.pdf | |
actor Main | |
let max: I32 | |
let sink: Prime | |
new create(env: Env) => | |
max = try env.args(1)?.i32()? else 100 end |