def get_prime_numbers_for_range(num_range):
    """
    Get Prime numbers series

    Function to take num_range as integer and return prime numbers till number

    Parameters
    ----------
    num_range : int
        Range of number

    Returns
    -------
    list

    Author
    ------
    Prabodh M

    Date
    ------
    29 Nov 2017

    """

    prime_list = []

    prime_list.append(2)

    for num in range(3, num_range+1):
        is_prime = True
        for prime in prime_list:
            if num % prime is 0:
                is_prime = False
                break
        if is_prime:
            prime_list.append(num)

    return prime_list