On Linux mint 64bit using GCC and codeblocks
function to create an array of remainders of base and then print them works on any value up to 14940,but 14941 causes seg