Primo ou não?

Primo ou não?

The mission is in Blocked Mode. Access to the solutions is blocked for a day or two (even after you share your own), until we'll have enough solutions for you to check. All users who've solved the mission will get the notifications about their opening.

Crie uma função que receba um número inteiro como parâmetro e retorne True se o número for primo, e False caso contrário.

Entrada: Um número inteiro num.

Saída: Um valor booleano (True ou False) indicando se o número é primo ou não.

Exemplo:

primo(2) == True
primo(17) == True
primo(4) == False
primo(1) == False