function which returns an array containing the prime decomposition of a given number > 1