PGM07 - Program to calculate Primorial of n

Primorial is nothing but the product of all prime numbers from 1 to the given number.

Example:

15# = 2 x 3 x 5 x 7 x 11 x 13 = 30030

So the primorial of 15 is the product of prime number from 1 to 15 which are 2, 3, 5, 7, 11, 13, which is equal to 30030.


I want you to try this program on your own in your notebook and whatsapp the pic of your program to my personal number 7676012222

Complete and Continue