Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
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 ...
-
Maybe the program needed that many prime numbers but calculating it on fly would take too long... ?
-
Jifuna37407y@Seshpenguin Exactly, I wrote something similar but not with 5000000 primes more like 100.
-
viking817427yWell, it's not dumb. Although it depends on the use case. Runtime cache would probably also be an alternative
-
Primes are used to generate more primes. May be the programmer was onto something bigger.
-
@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.
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
-
reckoner6Well, this will be a good day. ( ・◡・) _(_つ/ ̄ ̄/_ \/__/ Why not compile? (...
Hats off to this lady .... I would have just flipped the machine
undefined
c++