Help for this page

Select Code to Download


  1. or download this
    1 = 1
    4 = 1 + 3
    9 = 1 + 3 + 5
    ...
    
  2. or download this
    use strict;
    use warnings;
    ...
        my $prev;
        say $_, ' ', $str =~ m/^(1)(?{$prev=$^N})(?>((??{$prev})11)(?{$pre
    +v=$^N}))*$/ ? 'yes' : 'no';
    }