Came up with a faster way of solving PE4, called it 4a.c