Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        }
    }
    say "Found $found primes between 1 and ", TOP, ".\n";
    
  2. or download this
    #include <iostream>
    using namespace std;
    ...
             << 1 << " to " << SEARCH_TO << ".\n";
        return 0;
    }
    
  3. or download this
    use strict;
    use warnings;
    ...
        $found++;
    }
    say "Found $found primes between 1 and ", TOP, ".\n";
    
  4. or download this
    ..... (long list of primes omitted )....
    59753 is prime.
    ...
    Use of uninitialized value $i in modulus (%) at primes.pl line 17.
    Illegal modulus zero at primes.pl line 17.
    Free to wrong pool 2f4d50 not 1000 during global destruction.