Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

how can i catch prime numbers with While Loop ?

544191May 11 2008 — edited May 12 2008
I want to make Pl/SQL program using WHILE LOOP , which will accept integer from 1 to 50 and generate the prime numbers as shown in the following output :-

The prime numbers from 1 to 50 are as follows :
1,2,3,5,7,11,13,17,19,23,29,31,37,41,43,47


How suppose that's done ?!

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 9 2008
Added on May 11 2008
13 comments
2,397 views