Better HN
topnewbestaskshowjobs
Log inSign up

PirateAvogadro

-1 karma · joined Sep 18, 2017 (9y ago) · 3 submissions

Submissions

comment 5y ago · link · parent

You don't need to test up to n/2, just floor(sqrt(n)) will do

even better you only need to test the primes <= floor(sqrt(n))

comment 7y ago · link · parent

You could use ITERATOR_DEBUG_LEVEL=1 or 0 in debug mode; I made a "FastDebug" profile for this, although you will have to recompile dependencies

comment 9y ago · link · parent

Having chrome installed by whatever [dark] pattern is at least putting it on an even footing with the platform's default browser - for those who would never proactively change their browser, this at least is closer to such a browser meritocracy.