Skip to content

Instantly share code, notes, and snippets.

@yuuki
Created August 20, 2012 07:18
Show Gist options
  • Select an option

  • Save yuuki/3401806 to your computer and use it in GitHub Desktop.

Select an option

Save yuuki/3401806 to your computer and use it in GitHub Desktop.
use 5.010;
use Math::BigInt;
my @list = map { my $b = $_; map { Math::BigInt->new($_) ** $b } 2..100 } 2..100;
say scalar do { my %s; grep { !$s{$_}++ } @list }; # uniq
# 9183
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment