def index_on_inner_list(list_data, index_no):
    from operator import itemgetter
    
    result = sorted(list_data, key=itemgetter(index_no))
    return result
def is_not_prime(n):
    import math
    
    result = False
    for i in range(2,int(math.sqrt(n)) + 1):
        if n % i == 0:
            result = True
    return result