Hacker Newsnew | past | comments | ask | show | jobs | submit | shreshthmohan's commentslogin

A great way to annoy a big chunk of your site's users too. Classic dig own grave.


Walkthrough video is too fast. Looks good otherwise. Better if you add a video with audio instructions.


will do


1. It's a photo from the Tesla Gigafactory. So that's his own event. 2. I am not sure, what's a bigger problem, increasing plastic waste or the dearth of 'sustainable' cars. I respect the man for his efforts, but this is ironic, no?


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.


Some digging reveals that a common method for generating OTPs is through repeated hash function applications. A good hash function should produce uniformly distributed outputs.

There 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.


You sound a lot like Linus Torvalds. :-)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: