I hope i can say this without upsetting you, and with all the respect you deserve as a fellow jsp'er - I don't know math. I don't know you. But i do know that this from the outside has a lot of coincidence with what a sudden mental health situation can look like, a manic episode for example. Sudden inspiration, especially math or religion based, pressured thinking, desperation to connect, maybe feeling frustrated or isolated. Getting into it with reddit is not a healthy sign, the scattered nature of your writing here is not a healthy sign.
Again with concern and respect, mental health issues can arise at any age, and obviously are much more likely if anyone in your family has history of depression, bipolar disorder, schizophrenia or others. Someone experiencing mania or other mental health issues, especially for first time, is unfortunately unlikely to seek help independently. Talk with someone you trust could recognize if you're acting different from usual. Please don't wait until things deteriorate or you find yourself in a crisis.
There are many brilliant, professional number theorists whose careers and interests center on primes. There are also many people whose brilliant brain chemistry suddenly works against them, often in ways that are manageable if someone is aware and willing to look for help. Anyways hope you have a safe landing.
I had a similar experience like this some years back. With the Circle of 5ths in music. Spent many late nights grinding the math and designing my own Circle. The circle I ended up with was better than any music theory I'd ever seen or learnt.
I don't have my designs anymore though. I ended up deleting them after I had finished.
To this day it makes me wonder how many guys have gone through this where they do have a 'revelation' like this but it doesn't get any academic recognition.
It's a bit like that movie 'PI' if you have seen that. If you haven't seen it the math genius in that movie ends up drilling into his brain so he can't calculate complex things anymore.
My experience was alot like that. I ended up just shutting off that part of my brain and going back to making basic music again.
But at the same time I was pretty mind blowing experience to dive into the depths of the psyche like that and discover. Once you know these kinds of things it can bring inner peace afterwards. It's a bit like climbing Mount Everest or something right? Not easy on the body and mind at the time but people do it for a reason...