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 30, 2026 12:59olliecrowolliecrowScore: 11,684Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 13:0011,48030,051,1128,083,0002,020,0002,408,448
2Apr 30, 2026 13:0011,51927,002,9118,110,0002,027,0002,412,544
3Apr 30, 2026 13:0011,57926,559,0259,171,0001,019,0002,473,984
4Apr 30, 2026 13:0011,62531,482,3019,207,0001,023,0002,424,832
5Apr 30, 2026 13:0011,68428,636,7378,226,0002,056,0002,412,544
6Apr 30, 2026 13:0011,68727,939,7509,257,0001,028,0002,416,640
7Apr 30, 2026 13:0011,68927,214,3749,259,0001,028,0002,400,256
8Apr 30, 2026 13:0011,68923,437,8839,259,0001,028,0002,404,352
9Apr 30, 2026 13:0011,71330,477,6729,278,0001,030,0002,412,544