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 24, 2026 17:03olliecrowolliecrowScore: 137,328Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 17:04136,847142,028,508119,423,0001,003,0002,478,080stderr
2Apr 24, 2026 17:04137,105136,572,700119,648,0001,005,0002,469,888stderr
3Apr 24, 2026 17:04137,186134,221,476120,724,00002,482,176stderr
4Apr 24, 2026 17:04137,204136,375,060119,734,0001,006,0002,539,520stderr
5Apr 24, 2026 17:04137,328134,832,063118,852,0001,997,0002,539,520stderr
6Apr 24, 2026 17:04137,381134,328,657118,898,0001,998,0002,469,888stderr
7Apr 24, 2026 17:04137,419140,430,031118,931,0001,998,0002,478,080stderr
8Apr 24, 2026 17:04137,459139,292,092118,965,0001,999,0002,392,064stderr
9Apr 24, 2026 17:04137,819142,865,765121,281,00002,482,176stderr