number_theory_operation
Check integer primality, factor an integer, get the next prime, or compute the greatest common divisor and least common multiple of two integers.
Instructions
Number theory operations: is_prime, factor_integer, next_prime, gcd, lcm
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | Primary integer argument | |
| b | No | Second integer (required for gcd, lcm) | |
| operation | Yes | Operation: 'is_prime', 'factor_integer', 'next_prime', 'gcd', 'lcm' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||