C Program to Print prime number Pyramid


Print prime number Pyramid in C : Pyramid Program Home
Logic :
Prime Numbers : Numbers that are divisible by 1 and number itself is called Prime number.

  1. This program is nothing  but the pyramid of the prime numbers .
  2. To Evaluate Number is Prime or not Consecutively divide that number from 2 to n/2
  3. Example : to find whether 17 is prime or not divide that number from 2 to (17/2 = 8) if none of the remainder is zero then the number is surely prime else number is non-prime.
  4. Remaining Logic is same as Any other Nested Pyramid


Output :

[toggle title=”Download Program”]Download[/toggle]