RosettaCodeData/Task/Multiplicative-order/Perl/multiplicative-order-1.pl

4 lines
92 B
Perl
Raw Permalink Normal View History

2015-02-20 00:35:01 -05:00
use ntheory qw/znorder/;
say znorder(54, 100001);
use bigint; say znorder(11, 1 + 10**100);