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 26, 2026 03:19zielajzielajScore: 3,290Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 26, 2026 03:213,09519,329,3342,724,00002,428,928
2Feb 26, 2026 03:183,09917,989,0492,727,00002,428,928
3Feb 26, 2026 03:183,10220,327,0722,730,00002,424,832
4Feb 26, 2026 03:213,13221,562,2162,756,00002,428,928
5Feb 26, 2026 03:183,13621,237,1242,760,00002,420,736
6Feb 26, 2026 03:183,15724,263,3352,778,00002,424,832
7Feb 26, 2026 03:193,16721,209,4752,787,00002,424,832
8Feb 26, 2026 03:183,27618,133,9151,922,000961,0002,420,736
9Feb 26, 2026 03:213,28119,810,215962,0001,925,0002,424,832
10Feb 26, 2026 03:213,29016,764,848965,0001,930,0002,428,928
11Feb 26, 2026 03:183,30720,771,7681,940,000970,0002,428,928
12Feb 26, 2026 03:213,31118,606,7261,943,000971,0002,277,376
13Feb 26, 2026 03:203,32018,389,4922,922,00002,424,832
14Feb 26, 2026 03:203,32421,096,5161,950,000975,0002,277,376
15Feb 26, 2026 03:193,32420,390,6111,950,000975,0002,428,928
16Feb 26, 2026 03:203,32522,488,5771,951,000975,0002,424,832
17Feb 26, 2026 03:193,83019,516,0932,247,0001,123,0002,420,736
18Feb 26, 2026 03:213,83521,186,2463,375,00002,420,736