Learned Legendre Predictor: Learning with Compressed Representations for Efficient Online Multistep Prediction