All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
Divorce takes place with explicit words of divorce, such as “You are divorced”, and it takes place with one of the metaphors of divorce if one has the intention of divorce, such as saying “Go to your family.”
Writing mathematical numbers is not included in this at all.
The divorce of a person who suffers from whispers does not take place even if he uttered an explicit expression of divorce while he did not intend it, as stated by the scholars.
At-Taaj Wal-ikleel, from the Maliki School of jurisprudence, quoting from Al-Mudawwanah, reads:
"The divorce of a person who suffers from whispers does not take place, because it is from the devil, so he should repel these whispers and not pay any attention to them." [End of quote]
When a person has these whispers, there is no treatment for them except to repel them completely in addition to seeking refuge in Allah from the accursed Satan, and mentioning Allah as much as possible. Allah Says (what means): {And if there comes to you from Satan an evil suggestion, then seek refuge in Allah. Indeed, He is the Hearing, the Knowing.} [Quran 41:36]
For more benefit, please refer to Fataawa 119544, 375022 and 186373.
Allah knows best.