This is something I can only brag about on HN :-)
This is something I can only brag about on HN :-)
As a matter of fact a popular singer once published an album where the title was his social security number to show that you can't do much with it.
So not only are you probably not the only one in the country to have two twin primes for an ID number, you're probably not the only Dane on Hacker News for whom that's true!
WTF is the odds of that?
Edit: Here's my program: http://pastebin.com/sBsXjPt5
Usage: gcc primes.c -O2 -o primes; ./primes 8 | wc -l
Edit 2: Nevermind; I'm dumb. First, there are 10^8 unique 8 digit combos, not 10^8-10^7. If all combinations were legal we'd have a probability of 0.05096876. But I assume all combinations are not legal, so that answer too is wrong. Maybe later if I'm bored and have more time I'll research the Danish telephone system and get an accurate number.
The probability that a valid, non-reserved, 8-digit danish phone number is prime is 4208056/73399100, or ~0.0573312. This probability does not account for number blocks which are valid but not yet assigned/purchased.
Code uses a copy of the number spreadsheet without header row saved as 'danish_numberlist.csv'
Code here: http://pastebin.com/kWUsHsL4