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 listApr 27, 2026 10:57Pavel 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
1Apr 27, 2026 10:57052,312,97831,385,0001,012,0002,420,736expected "51513875551766 ", got "51515024584747 "
2Apr 27, 2026 10:5736,70347,822,51431,290,0001,009,0002,433,024
3Apr 27, 2026 10:5736,74047,881,50531,322,0001,010,0002,424,832