Help for this page

Select Code to Download


  1. or download this
    Evaluates the BLOCK or EXPR for each element of LIST (locally
                setting $_ to each element) and returns the list value con
    +sisting
    ...
                scalar context, returns the number of times the expression
    + was
                true.
    
  2. or download this
    {
      ( exists $is_prime{$_} and $is_prime{$_} )
      or 
      ( $is_prime{$_} = is_prime($_) )
    }
    
  3. or download this
    exists $is_prime{$_}
    
  4. or download this
    and $is_prime{$_}
    
  5. or download this
    is_prime($_)
    
  6. or download this
    $is_prime{$_} =
    # the assigned value is the result of is_prime($_) if that function re
    +turned true