Help for this page

Select Code to Download


  1. or download this
    sub is_prime {
        ('1' x shift) !~ /^(11+)\1+$/
    }