This method finds prime numbers to 1000 and forms an array with them.