in c++ Write a program wherein the user is prompted for apositive number, to determine if it is prime number or a negativenumber to stop the program. The only requirement is that theprogram must contain two loops (you must determine which loops arethe correct ones to use for this question) and match the requiredoutput. Remember you can use modulo (%) to determine if one numberis evenly divisible by another– i.e. 5%2 is 1 because 2*2=4 andthere’s a remainder of 1. Remember 0 and 1 are not prime, 2 isprime, otherwise we modulo to 2 to that number-1 (you may have
PayPal Gateway not configured
PayPal Gateway not configured