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 18, 2026 00:12Charles CabergsCharles CabergsScore: 56,726Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2026 00:1256,40970,817,96947,614,0002,026,0002,289,664
2Apr 18, 2026 00:1256,41872,214,53548,635,0001,013,0002,433,024
3Apr 18, 2026 00:1256,50080,519,45348,706,0001,014,0002,441,216
4Apr 18, 2026 00:1256,69279,316,65148,892,000997,0002,281,472
5Apr 18, 2026 00:1256,72670,935,91747,923,0001,996,0002,269,184
6Apr 18, 2026 00:1256,75577,006,48346,948,0002,996,0002,437,120
7Apr 18, 2026 00:1256,75672,951,92947,948,0001,997,0002,289,664
8Apr 18, 2026 00:1256,76172,673,09447,952,0001,998,0002,281,472
9Apr 18, 2026 00:1257,04877,323,86646,186,0004,016,0002,441,216