How to Determine if a Number is a Prime Number by Writing a Computer Program , C++ , Part 2
Вставка
- Опубліковано 5 лип 2024
- This tutorial is part 2 of a playlist showing how to determine if a number is prime or not by writing a C++ program.
Join this channel to get access to perks:
/ @learnmathtutorials
:)
Hey Paul,
thanks for the explanation! Quick question, why use sqrt(number) as the loop's test expression?
yes it should be the original number
yup you are right, it is weird to use the sqrt, and i think it is better to use (number/2)
Perhaps a silly question Windows 10 is asking what program to use to execute this program. Is there another application that I need to install?
can you please give me the code