discrete_log_naive
Solve discrete logarithm problems g^x ≡ h (mod n) using a straightforward brute-force approach to find exponent x.
Instructions
Solve discrete logarithm g^x ≡ h (mod n) using naive method. (Domain: arithmetic, Category: modular_arithmetic)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"g": "<g>",
"h": "<h>",
"n": "<n>"
},
"name": "discrete_log_naive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| g | Yes | ||
| h | Yes | ||
| n | Yes | ||
| max_exp | No |