Skip to content

Instantly share code, notes, and snippets.

@colomon
Created October 5, 2012 01:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colomon/3837592 to your computer and use it in GitHub Desktop.
Save colomon/3837592 to your computer and use it in GitHub Desktop.
my @fourth-powers = (1..*).map(* ** 4) ...^ * > 635318657;
my @results = (@fourth-powers X+ @fourth-powers).classify({ $_ }).pairs.grep(*.value > 2);
say @results.map({ $_.key ~ " " ~ $_.value.Int / 2 ~ " times" });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment