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 e168a6d commit f6c6e7dCopy full SHA for f6c6e7d
docs/Runtime Environment/Bigint.md
@@ -105,3 +105,14 @@ Returns the position of the most significant set bit as a plain integer.
105
local bigint = require "pluto:bigint"
106
print(new bigint(420):bitlength()) --> 9
107
```
108
+
109
+---
110
+### `bigint.isprobableprime`
111
+Non-deterministically check if a number is prime.
112
+#### Parameters
113
+1. The bigint.
114
+2. Number of Miller-Rabin iterations to perform.
115
+```pluto
116
+local bigint = require "pluto:bigint"
117
+print(new bigint(91):isprobableprime(10)) --> false
118
+```
0 commit comments