Logic for Prime Number Lecture by Mr. Dhanesh Gupta.
A natural number greater than one has not any other divisors except 1 and itself. In other word we can say which has only two divisors 1 and number itself. For …
Faculty: ARTS B.A. III Year(VI Semester) Model Papers Sr. No. Paper Name Question Paper Link 1 Economics Click Here 2 English Literature Click Here 3 Geography Click Here 4 Political Science …
Faculty: ARTS B.A. III Year(V Semester) Model Papers Sr. No. Paper Name Question Paper Link 1 Economics Click Here 2 English Literature Click Here 3 Geography Click Here 4 Political Science …
Faculty: ARTS B.A. II Year(IV Semester) Model Papers Sr. No. Paper Name Question Paper Link 1 Economics Click Here 2 English Literature Click Here 3 Geography Click Here 4 Political Science …
A natural number greater than one has not any other divisors except 1 and itself. In other word we can say which has only two divisors 1 and number itself. For …
A natural number greater than one has not any other divisors except 1 and itself. In other word we can say which has only two divisors 1 and number itself. For example: 5
Their divisors are 1 and 5.
Logic for prime number in c
We will take a loop and divide number from 2 to less than number. If the number is not divisible by any of the numbers then we will print it as prime number.
