Intelligence is genetic
>The IQ of adopted children is much more strongly correlated with the IQ of their biological parents than with that of their adoptive parents, both in adolescence and adulthood.
environment plays a role but not in a way people think.
Ramanujan was mega mind but born in a shithole, he simply got lucky for getting help from his british boss at the office where he worked as a clerk.
Basically environment doesn't influence your intelligence itself but the opportunities.