Prime code puzzle