Project Euler problems solved using Perl 5