The CPU's will work,IF YOU UPDATE THE MOTHERBOARD to recognize them. Therefore you'd need an older model CPU to turn on the PC,do this, then put the better processor. This is a hassle. So your choices are
Get an older CPU
Get a newer z77/H77 /B75 motherboard.