factorial
Computes the factorial (n!) of a non-negative integer. Custom timeout available; results overflow for n > 170.
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) |