factorial
Compute factorial (n!) of non-negative integers. Returns overflow for n > 170. Supports custom timeout to control computation time.
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) |