MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1qwkno6/algorithmthesaviour/o3qmwyr/?context=3
r/ProgrammerHumor • u/Unique_Software2500 • Feb 05 '26
71 comments sorted by
View all comments
Show parent comment
21
Reminds me of an old method used to compute the n-th prime number. It has an INSANE time complexity and so many mathematicians roasted it because of it. It gets the work done but would take ages to compute
5 u/chachapwns Feb 06 '26 The absolute simplest method would just be checking every number which would be O(n2 * log(n)2) as n approaches infinity.
5
The absolute simplest method would just be checking every number which would be O(n2 * log(n)2) as n approaches infinity.
View all comments
Show parent comment
21
u/SaltyWahid Feb 05 '26
Reminds me of an old method used to compute the n-th prime number. It has an INSANE time complexity and so many mathematicians roasted it because of it. It gets the work done but would take ages to compute