Help for this page

Select Code to Download


  1. or download this
    foreach $x ($primes[$i]<=$n) {
    
  2. or download this
      push $x{$n}
    
  3. or download this
    foreach loop to iterate through the primes {
        if prime number currently being considered does not exceed $n {
            push it to the result list.
        }
    }