Method generate should return a non-empty array
Implementation so that first test case passes: Generate returns a non-empty array
Method generate should return an array of size 0 if given a number with no prime factors