P=[p for p in range(2,542)if all(p%d for d in range(2,p))] for p,q in zip(P,P[1:]):print P[q+~p]