diff options
-rw-r--r-- | 008/ch1.pl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/008/ch1.pl b/008/ch1.pl new file mode 100644 index 0000000..0327467 --- /dev/null +++ b/008/ch1.pl @@ -0,0 +1,10 @@ +#!/usr/bin/env perl + +use strict; +use warnings; + +my @mersennes = (2, 3, 5, 7, 13); + +foreach my $p (@mersennes) { + print 2**($p - 1) * (2**$p - 1), "\n"; +} |