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 16, 2026 21:17Pavel SkripkinPavel SkripkinScore: 2,389,869Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 16, 2026 21:172,374,2812,114,701,3042,088,368,000999,0002,281,472
2Apr 16, 2026 21:172,374,9342,117,064,1362,087,944,0001,998,0002,420,736
3Apr 16, 2026 21:172,386,3632,124,603,7022,098,000,0001,999,0002,281,472
4Apr 16, 2026 21:172,386,9332,126,085,7092,098,503,0001,998,0002,535,424
5Apr 16, 2026 21:172,389,8692,132,055,6142,101,086,0001,999,0002,281,472
6Apr 16, 2026 21:172,396,6342,133,278,1442,109,038,00002,277,376
7Apr 16, 2026 21:172,405,9002,143,813,7072,115,193,0001,999,0002,539,520
8Apr 16, 2026 21:172,407,5852,146,672,0642,117,676,000999,0002,281,472
9Apr 16, 2026 21:172,407,8572,144,950,3952,118,914,00002,281,472