Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listMay 25, 2026 20:21Pavel SkripkinPavel SkripkinError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2026 20:22032,944,13625,262,00002,117,632expected "51632008237258 ", got "51632384589779 "
2May 25, 2026 20:22032,826,74825,201,00002,117,632expected "50771207420478 ", got "50772725711185 "
3May 25, 2026 20:22035,279,26825,262,00002,117,632expected "51233592667180 ", got "51233687560463 "