Hacker News new | ask | show | jobs
by convery 350 days ago
It certainly is fast, but I'm curious if LLMs ever will figure out how bitshifts work..

e.g. from the playground: `static const uint64_t MERSENNE_PRIME = (1ULL << 127) - 1;` which it insists is the correct way to store a 128-bit integer in followup questions.

1 comments

For 128-bit values in C++, you'd need uint128_t (compiler extension) or a library like Boost.Multiprecision since 1ULL << 127 overflows the 64-bit type before subtraction occurs.