Added prim sequence checker