We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31f7271 commit e168a6dCopy full SHA for e168a6d
docs/Runtime Environment/Bigint.md
@@ -90,6 +90,14 @@ local bigint = require "pluto:bigint"
90
print(new bigint(2) ^ new bigint(10)) --> 1024
91
```
92
93
+---
94
+### `bigint.gcd`
95
+Computes the greates common divisor shared by 2 bigints.
96
+```pluto
97
+local bigint = require "pluto:bigint"
98
+print(bigint.new(48):gcd(bigint.new(18))) --> 6
99
+```
100
+
101
---
102
### `bigint.bitlength`
103
Returns the position of the most significant set bit as a plain integer.
0 commit comments