Multiplicative order: Difference between revisions
Content added Content deleted
(Add Perl using modules (we still should have a full implementation, using one of the same modules to supply factoring and lcm)) |
m (→{{header|Perl}}: Switch module from MPU to ntheory) |
||
Line 636: | Line 636: | ||
=={{header|Perl}}== |
=={{header|Perl}}== |
||
Using modules: |
Using modules: |
||
{{libheader|ntheory}} |
|||
<lang perl>use |
<lang perl>use ntheory qw/znorder/; |
||
say znorder(54, 100001); |
say znorder(54, 100001); |
||
use bigint; say znorder(11, 1 + 10**100);</lang> |
use bigint; say znorder(11, 1 + 10**100);</lang> |