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 listMay 17, 2026 20:34zielajzielajScore: 7,332,894Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 20:377,276,6956,411,311,0746,402,473,0001,019,0002,113,536
2May 17, 2026 20:377,276,8216,413,636,0406,403,603,00002,113,536
3May 17, 2026 20:377,311,1686,441,925,3846,432,557,0001,271,0002,113,536
4May 17, 2026 20:377,332,0176,461,725,0826,452,175,00002,113,536
5May 17, 2026 20:377,332,8946,460,731,6806,451,945,0001,002,0002,113,536
6May 17, 2026 20:377,337,5966,467,102,3256,456,032,0001,053,0002,113,536
7May 17, 2026 20:377,341,3346,471,160,6736,459,267,0001,107,0002,113,536
8May 17, 2026 20:377,342,7856,469,492,5686,461,651,00002,113,536
9May 17, 2026 20:377,375,2886,498,002,7336,490,254,00002,113,536