PL/SQL Program for Prime Number

Here you will get a pl/sql program for prime number.

A number is a prime number if it is divisible by 1 or itself. For example 2, 3, 5, 7, etc are prime numbers.

While numbers like 4, 6, 8, etc are not prime.

 

PL/SQL Program for Prime Number

 

Output

Enter value for n: 12
old 9: n:=&n;
new 9: n:=12;
not prime

Leave a Reply

Your email address will not be published. Required fields are marked *