You got that entirely wrong. Lennon/McCartney wrote it with Jagger and Richards in the same room. The Stones recorded it first as a single and went nowhere on the charts. The Beatles shortly thereafter recorded it and it also went no where.
The Stones first hit was "It's All Over Now" in the UK. Written by Bobby Womack and originally recorded by him and his brothers know as the Valentinos.
You're messing with the wrong guy here regarding the Stones. You Silver Beatle types are all the same. Beatles were Rock Gods or some such nonsense. "I Wanna Hold Your Hand", bubblegum. Stones, "Little Red Rooster" bluesy with soul.