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 listSep 12, 2026 08:23Haha ExpertHaha ExpertError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 12, 2026 08:24063,008,50154,438,00002,117,632expected "51154610552242 ", got "1034590174786 "
2Sep 12, 2026 08:24063,085,14554,422,00002,117,632expected "51209536120054 ", got "1032849542275 "
3Sep 12, 2026 08:24063,116,09954,547,00002,117,632expected "51111541483719 ", got "1085351894568 "