aboutsummaryrefslogtreecommitdiff
path: root/challenge-147
diff options
context:
space:
mode:
authorLuis Mochan <mochan@fis.unam.mx>2022-01-12 09:41:48 -0600
committerLuis Mochan <mochan@fis.unam.mx>2022-01-12 09:41:48 -0600
commit29a459894b7cbb34cd15139d513722fb08358166 (patch)
treea9d01774cae86632fb382a20d127a4a0922415c0 /challenge-147
parent2fde38fca4f71b4bd317284a52890f23af915417 (diff)
downloadperlweeklychallenge-club-29a459894b7cbb34cd15139d513722fb08358166.tar.gz
perlweeklychallenge-club-29a459894b7cbb34cd15139d513722fb08358166.tar.bz2
perlweeklychallenge-club-29a459894b7cbb34cd15139d513722fb08358166.zip
Remove unneeded check
Diffstat (limited to 'challenge-147')
-rwxr-xr-xchallenge-147/wlmb/perl/ch-2b.pl1
1 files changed, 0 insertions, 1 deletions
diff --git a/challenge-147/wlmb/perl/ch-2b.pl b/challenge-147/wlmb/perl/ch-2b.pl
index c029154bc9..320dfedddc 100755
--- a/challenge-147/wlmb/perl/ch-2b.pl
+++ b/challenge-147/wlmb/perl/ch-2b.pl
@@ -14,7 +14,6 @@ my $N=shift;
my $start=time();
my $n=zeroes(long, $N)->xvals+1;
my $p=$n*(3*$n-1)/2;
-my $check=pentagonal($p);
my $pass=whichND(pentagonal($p+$p(*1)) & pentagonal($p-$p(*1)));
die "No solution found. Try to increase the largest_index" unless $pass->dim(1)>0;
my $ij=$pass(:,(0))+1;