Question: Please write an anonymous PL / SQL program to check whether the number 1 0 0 1 is a prime number ( a number that
Please write an anonymous PLSQL program to check whether the number is a prime number a number that cannot be divided by any number other than and itself Print out a message is a prime number if is a prime number and is not a prime number' otherwise.
Hint: You can check whether can be divided by any odd integer that is greater than but less or equal to square root of
sqrtx returns square root of x in PLSQL modxy returns remainder of dividing x by y
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
