Find a Prime number, add 2 to the number. Check if the new number is prime.
IE : 3 is prime. 3+2 =5. 5 is prime. (3,5) are twin primes.
Chat with our AI personalities
write a c++program by using if statement to read a number and check whether it is positive or negative
You can write out this algorithm. This will then be programmed into the device to make determining prime numbers easier.
Type your answer here... i think we should first enter 1 number then check it
45
if it's square root is an integer, it is a square number.