Modular inverse: Difference between revisions
Content deleted Content added
Line 810: | Line 810: | ||
=={{header|newLISP}}== |
=={{header|newLISP}}== |
||
<code> |
|||
(define (modular-multiplicative-inverse a n) |
(define (modular-multiplicative-inverse a n) |
||
(if (< n 0) |
(if (< n 0) |
||
Line 841: | Line 841: | ||
(println (modular-multiplicative-inverse 42 2017)) |
(println (modular-multiplicative-inverse 42 2017)) |
||
</code> |
|||
=={{header|Nim}}== |
=={{header|Nim}}== |