primetestedloop

noun
UK /praɪm ˈtɛstɪd luːp/
US /praɪm ˈtɛstɪd lup/

A primetestedloop is a loop that checks if a number is prime.

The programmer wrote a primetestedloop to find all the prime numbers under one hundred.


OTHER MEANINGS

2. A repeated trial in which each candidate number is divided by smaller numbers to see if it is prime.

The primetestedloop tried every divisor from two up to the square root.

3. A teaching exercise where students build a loop that tests numbers for primality.

Today's homework was to finish the primetestedloop before class.

4. A reusable code block that returns true or false for whether a number is prime.

She wrapped the primetestedloop in a function so the team could call it anywhere.