Template:IsPrime

From LifeWiki
Jump to navigation Jump to search

This template can be used to test if a number (up to 1000) is prime. Here is a simple example of its usage:

You write:

{{#if: {{isPrime|587}} | 587 is prime! | 587 is not prime! }}

You see:

587 is prime!