culd any body tell the concept for the prime number programe?
Gunesh Asatkar
Feb 13th, 2013
set the start and end limit from which prime will calculate.
then start first for loop and second for loop.
"cobol DATA DIVISION.
WORKING-STORAGE SECTION.
77 I PIC 999 VALUE 001.
...
1. You dont need to loop further than the integer of the square root of the number in question
2. You can skip multiples of numbers already checked (if a number is not divisible by 2 then its not by 4 either)