def generate_primes(amount):
    """Generate first n primes.

    Parameters
    ----------
    amount : int
        Amount of prime numbers to generate.

    Returns
    -------
    list
        Prime numbers.
    """
    output_list = [2]
    number = 3
    while len(output_list) < amount:
        primeness = True
        for num in range(2, int(number ** 0.5) + 1):
            if number % num == 0:
                primeness = False
                break
        if primeness:
            output_list.append(number)
        number += 1
    return output_list
