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:34A_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:360119,976,999108,508,0002,346,0002,113,536expected "51164738062662 ", got "51148145923481 "
2Jun 21, 2026 22:360120,945,056109,014,0002,380,0002,113,536expected "51255462490771 ", got "51245408589312 "
3Jun 21, 2026 22:360124,133,996108,714,0002,343,0002,117,632expected "51272107854963 ", got "51259943286156 "