Bitcoin is technology not a religion and has not similarities whatsoever with it.
Science and technology can become a religion
https://rationalwiki.org/wiki/ScientismWhen you talk about algorithms, you are talking about mathematics.
Mathematics has a very close relation with philosophy
for centuries, mathematicians were at the same time philosophers
until the last century, as good as each major logician was a philosopher,
phylosophy has a very close relation with religion