Online Primary Learning