I had a somewhat similar encounter with a 4 year old (!), who blew me away with his ability to solve arithmetic puzzles: http://heinrichhartmann.com/blog/2016/06/12/Box-Counting-Ari... It's a great joy to work with such gifted young minds.
Such precociousness is often[1] an indicator of abnormalities and handicapped general intelligence. For example, if our son independently began to read too early the initial reaction of my spouse, a Speech-Language Pathologist, would be to freak out rather than to be filled with pride. Perhaps you know this and used "gifted" in its more euphemistic sense. In any event, I mention this not to correct you but to address…
Being precocious doesn't mean autism, and no professional SLP would "freak out" at an early reader.
Being smart is an "abnormality", and autism is not "handicapped general intelligence".
Warning signs for autism include obsession with letters and numbers without understanding meaning, not being able to reason about math and discuss mathematical topics.