Help for this page

Select Code to Download


  1. or download this
    #!perl -p
    $_ x=(1x$_)!~/^(|.|(..+)\2+)$/
    
  2. or download this
    $ seq -50 50 | perl prime.pl
    2
    3
    ...
    41
    43
    47