I was wondering if someone could check my code and try to debug it.
Everything seems correct when I run it, but I end up getting an unwanted value in the printed array when the code is run. The array should only print out the prime numbers for the given array in the code, but 33 gets printed along with the other numbers. I’ve tried removing 33 and placing another number like 66 to see if the code includes it in the printed array. 66 does not get printed, which is good, but I’m still curious as to why 33 is still getting printed.
Thank you so much, and appreciate the help.