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 14, 2026 17:40limanjun99limanjun99Score: 16,785Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 14, 2026 17:4016,69738,977,03313,644,0001,049,0002,342,912
2Apr 14, 2026 17:4016,70235,157,66312,599,0002,099,0002,437,120
3Apr 14, 2026 17:4016,70741,983,75712,602,0002,100,0002,437,120
4Apr 14, 2026 17:4016,75034,132,69414,740,00002,441,216
5Apr 14, 2026 17:4016,78541,245,76413,716,0001,055,0002,318,336
6Apr 14, 2026 17:4017,28631,727,72913,184,0002,028,0002,498,560
7Apr 14, 2026 17:4017,31935,186,70813,209,0002,032,0002,433,024
8Apr 14, 2026 17:4017,37232,296,19913,249,0002,038,0002,441,216
9Apr 14, 2026 17:4017,44545,189,55912,282,0003,070,0002,441,216