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 listFeb 8, 2026 22:18zielajzielajScore: 3,441Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 8, 2026 22:183,32217,276,1821,949,000974,0002,375,680
2Feb 8, 2026 22:183,32424,651,0191,950,000975,0002,531,328
3Feb 8, 2026 22:183,32624,127,8222,927,00002,383,872
4Feb 8, 2026 22:183,32823,830,0651,953,000976,0002,379,776
5Feb 8, 2026 22:183,33221,471,8872,932,00002,371,584
6Feb 8, 2026 22:183,33524,945,6331,957,000978,0002,371,584
7Feb 8, 2026 22:183,41617,270,1622,004,0001,002,0002,379,776
8Feb 8, 2026 22:183,44120,573,5252,019,0001,009,0002,367,488
9Feb 8, 2026 22:193,44320,578,7771,010,0002,020,0002,375,680
10Feb 8, 2026 22:183,45118,347,6681,012,0002,025,0002,375,680
11Feb 8, 2026 22:193,45121,528,2812,025,0001,012,0002,367,488
12Feb 8, 2026 22:193,45521,787,1932,027,0001,013,0002,375,680
13Feb 8, 2026 22:183,45823,213,2131,014,0002,029,0002,482,176
14Feb 8, 2026 22:183,46821,807,8732,035,0001,017,0002,383,872
15Feb 8, 2026 22:183,78220,586,0553,328,00002,367,488