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 25, 2026 18:18Kevin HeaveyKevin HeaveyScore: 2,670Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 25, 2026 18:202,66311,020,9572,344,000020,480
2Sep 25, 2026 18:202,66710,696,8372,347,000020,480
3Sep 25, 2026 18:202,66910,783,0152,349,000020,480
4Sep 25, 2026 18:202,67010,806,7952,350,000020,480
5Sep 25, 2026 18:202,67010,876,5872,350,000020,480
6Sep 25, 2026 18:202,67110,764,1692,351,000020,480
7Sep 25, 2026 18:202,67510,833,7792,354,000020,480
8Sep 25, 2026 18:202,68110,776,5722,360,000020,480
9Sep 25, 2026 18:202,68410,763,0622,362,000020,480