Skip to main content
Glama

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
NameRequiredDescriptionDefault
nYes
kNo

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chrishayuk/chuk-mcp-math-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server