Found it. Vexations by Satie https://en.wikipedia.org/wiki/Vexations
It’s fewer repititions than I had remembered at a mere 840.
When John Cage, David Tudor and others gave the first public performance, it took over 18 hours and they gave a refund to audience members of 5c for each twenty minutes they stayed for