all credit to Programming Fun. i just made it faster and added a function where it tells you the amount of prime numbers at the end. Note- only works for up to 200000 numbers.
i just wanted to have one of these for myself. i basically copied it. i didn't do any of the work. go check out @Programming Fun, they deserve the credit.