Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I'm following Todd Trimble's suggestion and writing my comment as an answer:
I suggest you write your own proof completely, then mention that your proof is a modification of the proof of Erdős, then cite his paper.