Design an algorithm to find out all prime numbers within 50, and the algorithm steps are described in natural language

Design an algorithm to find out all prime numbers within 50, and the algorithm steps are described in natural language

Cycle from 1 to 50
Then divide each number by 23456789
If the result of these 8 divisions is not an integer or = 1, then it is a prime number
If the result of the division of 8 times has an integer and is not equal to 1, then it is a composite number and jump out of this cycle
Proceed to the next cycle
The algorithm is not the best, but it's easy to understand
Hope it helps