A gap theorem for the anonymous torus