the part i need help with is the "skip".
in this code the upper for is used to check if the number is prime so thats settled.
The program checks each number in the array now there are multiple same number entries like 1,1,1,2,3,1,2,5,7,5,7 in this entry the prime numbers are 2,2,5,7,5,7 without skip.
The question is "is there another way to skip multiple same number entries and just print 1 of each like 2,5,7? Other than my solution which is the nested-ifs?"