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 15, 2026 23:50Josu San MartinJosu San MartinScore: 5,276Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 15, 2026 23:545,24213,195,9934,613,00002,113,536
2Sep 15, 2026 23:545,25413,263,5414,624,00002,113,536
3Sep 15, 2026 23:545,26413,264,5524,633,00002,113,536
4Sep 15, 2026 23:545,27013,341,9114,638,00002,113,536
5Sep 15, 2026 23:545,27613,330,4554,643,00002,113,536
6Sep 15, 2026 23:545,27813,254,0994,645,00002,113,536
7Sep 15, 2026 23:545,31013,294,0574,673,00002,113,536
8Sep 15, 2026 23:545,62813,575,4094,953,00002,113,536
9Sep 15, 2026 23:545,83013,673,0365,131,00002,113,536