Course of Raku / Advanced / More about built-in types / Integers / Exercises
Prime or not
Problem
The is-prime method answers a question that is usually
hard to eyeball. Use it on two numbers that both look prime at a glance:
97 and 91. Print the result for each on its
own line.
(91 is the catch — it equals 7 × 13.)
Example
The program prints:
True
False