Project Euler Problem 55
I wrote a bunch of these but never posted them up, so I'm just uploading them in bulk now. Not much to say about them at this point.
- #!/usr/bin/perl
- sub p55 {
- my $count = 0;
- for(my $i = 1; $i < 10000; $i++) {
- $count++ if(is_ly($i));
- }
- }
- sub is_ly {
- my @stack;
- while(@stack < 50) {
- $n = $stack[@stack-1];
- }
- }
- my $count = p55();