added function to calculate all prime factors for all numbers smaller than number