Sep-25-2019, 10:57 PM
I would get rid of liste_number entirely. Just exit the loop if you find there's no remainder, and print the message. That would be faster, but I also think it would be easier to read.
check if the number is a prime integer
|
|
Messages In This Thread |
check if the number is a prime integer - by atlass218 - Sep-25-2019, 10:30 PM
RE: check if the number is a prime integer - by micseydel - Sep-25-2019, 10:57 PM
RE: check if the number is a prime integer - by perfringo - Sep-26-2019, 04:54 AM
RE: check if the number is a prime integer - by atlass218 - Sep-26-2019, 06:36 AM
RE: check if the number is a prime integer - by perfringo - Sep-26-2019, 06:47 AM
RE: check if the number is a prime integer - by atlass218 - Sep-26-2019, 07:58 AM
|