I was in a similar situation once. I started working for this company I was 32 at the time and everyone I worked with including my supervisor were 25 or younger.
Everyday for the first couple years were shear torture, I hated going into work, I hated getting out of bed, I hated everyone I worked with, but I needed the job, It was an IT job and having a mostly Linux background finding a company that was more Linux that Windows was hard enough. Also I was out of work for almost 6 month before I got the job so quitting really wasn't an option.
These people were horrible, everything I knew was wrong, and instead of explain how I was wrong they would mock me and often leave little gifts for me on my desk when I would come in, pink slips, rainbow bright stickers, once there was a cane although a nice one still not nice, one day I am pretty sure there was semen on my chair, which I quickly replaced.
We didn't really have an HR, and the person who was our HR would have only joined in if she knew what was happening.
The CEO hired me, I'm really not sure why to this day, I didn't have half the experience my other co-worker had, yes they were indeed smarter than I was, I was not assertive, I was not aggressive, I was quiet kept to myself, wanted to learn as much as I could, which is why I was there.
So I used that, I studied, everyday they would mock me for not knowing something I would go home and research everything I could about what it was, talk to friends, post of the SE to get more insight to what I was missing, over time, about 6 months, it started to settle down, It never really stopped I was still someone's punching bag one day to the next but I was learning which is why I was there.
Before I go down memory road, decide why you are there if you need to be there. If you don't need to be there look for a job while you have a job, and if you do need to be there keep your head down, don't worry about making friends at work, they probably are not people you want to be friends with anyway.
Take the time to be the best at what you do, then people can say what they want, honestly acting like none of it bothers you really does work, laugh at yourself, go home and cry in your pillow and then get up and do it all over again, It gets better trust me.