basically though, it is better to store found prime numbers in anArrayList. Then you can check prime numbers in the array list, andthen those numbers that are larger than the largest known primenumber.