Constraining the primordial initial mass function with stellar archaeology