I made a post in this forum a few days ago because I may have developed a new math formula. I was asking about what I should do (I'm pursuing a bachelor's in CS, so I was somewhat lost), and I received really good and clarifying answers!
However, one of the most frequent pieces of advice was to talk to a professor whom I trust. The issue is that I don't know much about my professors, and I'm unsure if discussing a potential new discovery in the field with them might result in them taking the idea and publishing it themselves.
So, how can I determine whom I can trust, and is there a way to "protect" my work before openly discussing it with someone?
I'm asking this because I still don't fully understand how the research area deals with ideas that haven't been published yet. Thanks for any help!