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 20, 2026 02:25zielajzielajScore: 3,328Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2026 02:243,12619,131,5642,751,00002,437,120
2Feb 20, 2026 02:243,14117,930,2622,764,00002,437,120
3Feb 20, 2026 02:273,14422,220,3802,767,00002,437,120
4Feb 20, 2026 02:243,15019,211,4402,772,00002,433,024
5Feb 20, 2026 02:273,17320,349,8442,792,00002,433,024
6Feb 20, 2026 02:273,17719,729,5992,796,00002,437,120
7Feb 20, 2026 02:243,18520,939,8482,803,00002,433,024
8Feb 20, 2026 02:263,29418,212,0232,899,00002,424,832
9Feb 20, 2026 02:253,31419,588,8071,944,000972,0002,437,120
10Feb 20, 2026 02:253,32422,089,7651,950,000975,0002,437,120
11Feb 20, 2026 02:263,32522,507,2191,951,000975,0002,433,024
12Feb 20, 2026 02:243,32516,249,1091,951,000975,0002,433,024
13Feb 20, 2026 02:253,32820,630,7921,953,000976,0002,437,120
14Feb 20, 2026 02:253,33421,087,7611,956,000978,0002,424,832
15Feb 20, 2026 02:253,33516,665,7751,957,000978,0002,428,928
16Feb 20, 2026 02:253,34018,447,2282,939,00002,437,120
17Feb 20, 2026 02:253,34419,455,5831,962,000981,0002,441,216
18Feb 20, 2026 02:243,34820,551,1481,964,000982,0002,441,216
19Feb 20, 2026 02:243,35323,713,2872,951,00002,433,024
20Feb 20, 2026 02:253,52620,687,3982,069,0001,034,0002,433,024
21Feb 20, 2026 02:253,69723,728,1013,253,00002,535,424
22Feb 20, 2026 02:263,70616,954,8402,174,0001,087,0002,433,024
23Feb 20, 2026 02:243,76020,068,3483,309,00002,428,928
24Feb 20, 2026 02:243,84919,459,3162,258,0001,129,0002,433,024