Removed usage of s variable by setting the length of the f array and using f.length in the place of s.
Renamed the three methods to have more expressive names.
Re-arranged the initializeArrayOfIntegers method to read more nicely.
Renamed primes array to result.