ArrayList introduced for sorting the final prime-reverse-prime list of numbers