Skip to content
Rodrigo Celso de Lima Porto edited this page Jan 13, 2026 · 1 revision

Checks if a given number is prime.

Syntax

Number.IsPrime(
    value as Int64.Type
) as logical

Parameters

  • value: A number to check.

Return Value

Returns true if the number is prime, false otherwise.

Examples

Example 1: Check if 7 is prime

Number.IsPrime(7)

Result

true

Example 2: Check if 100 is prime

Number.IsPrime(100)

Result

false

Credits

Clone this wiki locally