Generating N Prime Numbers
One speed tweak is to search to only the square root of the 'possiblePrime'.  This will reduce computation by a significant order of magnitude.

Another tweak is to add 2, instead of 1 to 'possiblePrime' as you know that all even numbers > 2 are not prime.