Is Prime?

Determine whether a number is prime.

Topics: numbers, loops, algorithms, math. Solve this Luau challenge inside Luablox with visible examples and hidden tests.

Understand loop structures in Luau, including numeric, while, generic pairs, and ipairs iterators.

Browse all Luau problems

Read a theory lesson

Related pages