TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Are OTPs never prime?

2 点作者 shreshthmohan将近 10 年前
Indian banks use one-time password for two-factor authentication. Prashant (https:&#x2F;&#x2F;twitter.com&#x2F;pacificleo&#x2F;status&#x2F;600132236730441728) is saying that he has never seen an OTP that is prime. Which makes him ask if this is intentional.<p>- Is this true? If yes, why?<p>PS: this is my first submission to HN. Thanks.

1 comment

shreshthmohan将近 10 年前
I think that this is just probability in play. OTPs are usually 4 or 6 digits. Probability of seeing a prime number is little because of prime number theorem. I might be wrong though.
评论 #9687257 未加载