344
sam9669
3y

Hats off to this lady .... I would have just flipped the machine

Comments
  • 38
    If you need that many prime numbers, you dont want to calculate them everytime runtime or compile time; it' not like they are going to change ...
  • 6
    I wonder if they generated the list from some other c program to print prime numbers.
  • 6
    😮 ... Why?
  • 6
    Maybe the program needed that many prime numbers but calculating it on fly would take too long... ?
  • 4
    @Seshpenguin Exactly, I wrote something similar but not with 5000000 primes more like 100.
  • 3
    Well, it's not dumb. Although it depends on the use case. Runtime cache would probably also be an alternative
  • 9
    Primes are used to generate more primes. May be the programmer was onto something bigger.
  • 8
    I wonder how often people at GitHub browse through other people's code files..
  • 5
    @fattymiller Isn't that the point of a lot of it being open source?
  • 2
    @Kryptic i was thinking more about "private" repos, I suppose.

    I know nothing above hints that their code was private; this was just me thinking about how much trust we have given them.
  • 2
    But did she validated all the 50 million, before naming them?
  • 0
    Surely there must be a library for retrieving known primes??
Add Comment