I know how you feel. I'm only 15 by the way. I never really had any friends in primary school. We used to talk a bit but you know, not really friends, just out of convenience. Then in 7th and 8th grade everyone started telling me I was weird, noone wanted to talk to me or anything. I was pretty depressed, and I would just lean against a wall and stare somewhere to avoid my classmates. I really hated them. But the thing is, I actually had better grades than all the guys in the class except for one other guy. All of them had D's and F's. More than half of guys in the class had an extension at the end of 8th grade, and they all went to shit schools. All the girls in the class were the smart and only-study type, they didn't even talk to the guys.
It really all changed when I went to high school. It was a fresh start, and I (hope) I picked a good school (computer technician, then college). Half of the school year is over, and I realized some things. My generations is Luna damn straight down stupid. The girls dress like sluts, half of them is still 14, they all drink, smoke and whatnot. They have ridiculously bad grades. They tell me like "Whaohaoah ur so smart omigawd", but actually I'm just average. They are the ones that are stupid as hell. I get good grades without studying a lot, I just pay attention in class and I get away with B's and A's easily. There are 4 other... Umm fairly smart guys in the class, and we hang out during school. We don't really go anywhere outside of school, but it's a start. None of them are bronies, but hey, it's better than nothing.
So yeah, I'm pretty happy with my life at the moment, and I have hope that it will be even better.