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 listJun 21, 2026 22:22A_ShamanA_ShamanError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 22:230119,933,680108,432,0002,304,0002,113,536expected "51108029453257 ", got "51096140730683 "
2Jun 21, 2026 22:230120,248,340108,734,0002,291,0002,113,536expected "51395210125678 ", got "51384682775108 "
3Jun 21, 2026 22:230119,842,986108,378,0002,278,0002,113,536expected "51040468055699 ", got "51033466711927 "