Skip to content

Commit f6c6e7d

Browse files
committed
bigint.isprobableprime
1 parent e168a6d commit f6c6e7d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/Runtime Environment/Bigint.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,14 @@ Returns the position of the most significant set bit as a plain integer.
105105
local bigint = require "pluto:bigint"
106106
print(new bigint(420):bitlength()) --> 9
107107
```
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

Comments
 (0)