Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Deceptive-numbers/Perl/deceptive-numbers.pl
Normal file
10
Task/Deceptive-numbers/Perl/deceptive-numbers.pl
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
use Math::AnyNum qw(imod is_prime);
|
||||
|
||||
my($x,@D) = 2;
|
||||
while ($x++) {
|
||||
push @D, $x if 1 == $x%2 and !is_prime $x and 0 == imod(1x($x-1),$x);
|
||||
last if 25 == @D
|
||||
}
|
||||
print "@D\n";
|
||||
Loading…
Add table
Add a link
Reference in a new issue