Thank you for this extra ordinary performance. I'm a new beginner learning Python, how ever, since I started reading about Numba I tried to figure out how to implement and get the bif bennefits of this function. I'm trying to adapt it into my code-script but still got error messag. I'm doing it wrong, still missing information. For that reason now I'm asking the experts for advice. Please, any suggestion how to implement the Numba function correctly in to the following code-script to get it working error free. Otherwise, generating this code takes at minimum 7 days on my Inte Core i3 laptop. Thank you in advance for any support or advice.. Here's the code: from numba import njit, jit import itertools import os import xlsxwriter row = 0 col = 0 combin = itertools.combinations(range(1,36),7) count_combin = [] count = 0 workbook = xlsxwriter.Workbook( os.getcwd() + '\\' + 'combination.xlsx') worksheet = workbook.add_worksheet('combs') for i in combin: count_combin.append(i) print(count_combin.index(i)+1, i) worksheet.write(row,col,i[0]) worksheet.write(row,col+1,i[1]) worksheet.write(row,col+2,i[2]) worksheet.write(row,col+3,i[3]) worksheet.write(row,col+4,i[4]) worksheet.write(row,col+5,i[5]) worksheet.write(row,col+6,i[6]) row += 1 workbook.close() print('number of combinations', len(count_combin))