Prime numbers, whole numbers greater than 1 that cannot be divided evenly by any number other than themselves and 1, have been studied for millennia. Prime numbers continue to be of the utmost importance today, particularly in the field of computer cryptography. This recipe demonstrates how to determine whether a given number is prime.
Detecting prime numbers
Getting ready
To prepare for this recipe, perform the following steps:
- Open Power BI Desktop.
- Create a new table with the following formula:
R10_Table = GENERATESERIES(1 , 1000 , 1)
How to do it...
To implement...