for starters check your for loop inside generateBenfordNumbers... does that code compute for every element in the array or does it stop one short?