I have a strong feeling you are not an electrical engineer.
-Edsger Dijkstra
http://www.amazon.com/Things-Computer-Scientist-Language-Inf...
I don't personally 'get' prayer, nor do I practice it despite my Catholic upbringing, but I can see how the practice might be psychologically comforting. It's basically an acknowledgement of not having complete control or knowledge.
If you think about repeating Hail Mary on rosary beads for n amount of times, this becomes very similar to other Eastern forms of meditation, notably the Hare Krishna mantra. The key is the clearing of the mind and focusing on the mantra.
I don't agree with many of the practices in Catholicism, having also been raised one myself, but I can certainly see the parallels in prayer with meditation as a whole. If you get meditation, prayer becomes easier to understand.
I'm glad I live in America where I'm free to pray even if I can discover the mechanisms of the universe through experimentation.