factorial
Calculate the factorial of a non-negative integer (n!). Supports values up to 170. Set custom timeout for server computation.
Instructions
Factorial of non-negative integer (n!). n > 170 overflows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | ||
| timeout | No | Custom timeout in ms (100-60000, default: 3000) |