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 17, 2026 14:09zielajzielajScore: 3,320Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 17, 2026 14:103,15021,822,0142,772,00002,441,216
2Feb 17, 2026 14:103,17218,838,8992,791,00002,449,408
3Feb 17, 2026 14:113,17319,332,0442,792,00002,437,120
4Feb 17, 2026 14:103,18116,532,6682,799,00002,437,120
5Feb 17, 2026 14:103,19121,082,5352,808,00002,531,328
6Feb 17, 2026 14:103,19721,510,2402,813,00002,441,216
7Feb 17, 2026 14:113,30818,738,0942,911,00002,433,024
8Feb 17, 2026 14:103,31021,791,5211,942,000971,0002,523,136
9Feb 17, 2026 14:123,31520,651,1281,945,000972,0002,428,928
10Feb 17, 2026 14:103,31717,272,8471,946,000973,0002,535,424
11Feb 17, 2026 14:103,31721,156,2672,919,00002,433,024
12Feb 17, 2026 14:093,31717,722,6081,946,000973,0002,277,376
13Feb 17, 2026 14:113,32020,689,8241,948,000974,0002,437,120
14Feb 17, 2026 14:123,32423,596,1631,950,000975,0002,510,848
15Feb 17, 2026 14:123,32426,951,5511,950,000975,0002,510,848
16Feb 17, 2026 14:123,32520,796,9611,951,000975,0002,441,216
17Feb 17, 2026 14:113,32721,475,7182,928,00002,433,024
18Feb 17, 2026 14:123,32823,161,2101,953,000976,0002,441,216
19Feb 17, 2026 14:113,33218,395,8801,955,000977,0002,437,120
20Feb 17, 2026 14:103,34723,515,7512,945,00002,437,120
21Feb 17, 2026 14:093,35524,006,7762,952,00002,437,120
22Feb 17, 2026 14:093,36118,344,8891,972,000986,0002,445,312
23Feb 17, 2026 14:113,44315,812,0382,020,0001,010,0002,281,472
24Feb 17, 2026 14:123,72520,883,3493,278,00002,437,120