Implementation of unit test

I have created function for know is a number is prime, get all primes number before a N, an get all the prime factor
the function were
def primo(n)
def primos_hasta(n)
def factores_primos(n)