fermat_primality_test
Test if a number is prime using Fermat's primality test, which applies probabilistic checks with configurable iterations to identify probable primes.
Instructions
Fermat primality test. Simple but can be fooled by Carmichael numbers. (Domain: arithmetic, Category: advanced_primality)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | ||
| k | No |