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 listSep 10, 2026 15:39Andrew EpsteinAndrew EpsteinScore: 9,237Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 10, 2026 15:479,13617,949,3926,936,0001,104,0002,117,632
2Sep 10, 2026 15:479,16718,072,0606,962,0001,105,0002,117,632
3Sep 10, 2026 15:479,17517,945,3076,964,0001,110,0002,117,632
4Sep 10, 2026 15:479,18718,064,5116,977,0001,108,0002,117,632
5Sep 10, 2026 15:479,23717,974,0426,944,0001,185,0002,117,632
6Sep 10, 2026 15:479,25118,083,4846,955,0001,186,0002,117,632
7Sep 10, 2026 15:479,30418,033,5616,992,0001,196,0002,117,632
8Sep 10, 2026 15:479,31018,090,6156,979,0001,214,0002,117,632
9Sep 10, 2026 15:479,33218,093,4047,007,0001,206,0002,117,632