# Definition (Primorial Of a Number)
*Is similar to factorial of a number*, **_In primorial_**, not all the natural numbers get multiplied, **_only prime numbers are multiplied to calculate the primorial of a number_**. It's denoted with **_P_****_#_** and it is the product of the first n prime numbers.
___ 
# Task
**_Given_** *a number N* , **_calculate its primorial_**. ![!alt](https://i.imgur.com/mdX8dJP.png)  ![!alt](https://i.imgur.com/mdX8dJP.png)  
___
# Notes
* **_Only positive_** numbers *will be passed (N > 0)* .
___
# Input >> Output Examples:
``` cpp
1- numPrimorial (3) ==> return (30)
```
## **_Explanation_**:
**_Since_** *the passed number is (3)* ,**_Then_** **_the primorial_** *should obtained by multiplying*  ```2 * 3 * 5 = 30 .```
### Mathematically written as , **_P_**3**_#_** = 30 .
___ 
## **_Explanation_**:
**_Since_** *the passed number is (5)* ,**_Then_** **_the primorial_** *should obtained by multiplying*  ``` 2 * 3 * 5 * 7 * 11 = 2310 .```
### Mathematically written as , **_P_**5**_#_** = 2310 .
___
## **_Explanation_**: 
**_Since_** *the passed number is (6)* ,**_Then_** **_the primorial_** *should obtained by multiplying*  ``` 2 * 3 * 5 * 7 * 11 * 13 = 30030 .```
### Mathematically written as , **_P_**6**_#_** = 30030 .
___
___
___
# [Playing with Numbers Series](https://www.codewars.com/collections/playing-with-numbers)
# [Playing With Lists/Arrays Series](https://www.codewars.com/collections/playing-with-lists-slash-arrays)
# [For More Enjoyable Katas](http://www.codewars.com/users/MrZizoScream/authored)
___
## ALL translations are welcomed
## Enjoy Learning !!
# Zizou
def num_primorial(n):
    l = [2]
    k = 3
    while len(l) < n:
        l.append(k)
        for i in range(2, k):
            if k % i == 0:
                l.pop()
                break
        k += 1
    out = 1
    for i in l:
        out *= i
    return out
def num_primorial(n):
    l = [2]
    k = 3
    while len(l) < n:
        l.append(k)
        for i in range(2, k):
            if k % i == 0:
                l.pop()
                break
        k += 1
    out = 1
    for i in l:
        out *= i
    return out