Put them into a pan of water (bad eggs will float but good eggs just sink) and bring the water to the boil.
(bad eggs; will float; ) (good eggs; just sink; ) (bad eggs; bring; the water; to the boil)
bad eggs good eggs bad eggs
will float just sink bring
the water to the boil