Ask HN: Are OTPs never prime?
Indian banks use one-time password for two-factor authentication. Prashant (https://twitter.com/pacificleo/status/600132236730441728) is saying that he has never seen an OTP that is prime. Which makes him ask if this is intentional.
- Is this true? If yes, why?
PS: this is my first submission to HN. Thanks.
2 comments
[ 3.3 ms ] story [ 19.5 ms ] threadThere are 78,498 primes less than 10^6 (so, primes less than 6 digits), meaning that there is about a 7.9% chance of independently seeing a prime OTP if the OTPs are uniformly distributed. That seems pretty high. The expected value for seeing a prime OTP after multiple trials is just 15.
So I wonder if your friend is just unlucky or if his OTP provider is using another method for OTP generation.