I've seen many different ways to break out of two nested loops at once, but what is the quickest and simplest for my code?
primes = [2]
for a in range(3, 500, 2):
    for b in range(2, int(a ** 0.5 + 0.5)):
        if a % b != 0:
            primes.append(a)
        if a % b == 0:
            [x for x in primes if x != a]
            # double break
 
     
     
    