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 7, 2026 17:20zielajzielajScore: 3,389Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 17:193,31521,329,9571,945,000972,0002,510,848
2Feb 7, 2026 17:193,32016,764,1261,948,000974,0002,519,040
3Feb 7, 2026 17:193,32523,770,4431,951,000975,0002,342,912
4Feb 7, 2026 17:193,32716,408,2651,952,000976,0002,347,008
5Feb 7, 2026 17:183,32824,466,3661,953,000976,0002,506,752
6Feb 7, 2026 17:203,34120,665,2421,960,000980,0002,351,104
7Feb 8, 2026 01:553,34219,405,0261,961,000980,0002,535,424
8Feb 8, 2026 03:153,34524,256,1891,963,000981,0002,351,104
9Feb 7, 2026 17:193,35821,796,8831,970,000985,0002,342,912
10Feb 7, 2026 17:183,36516,750,9601,974,000987,0002,531,328
11Feb 8, 2026 01:553,38921,925,9081,988,000994,0002,355,200
12Feb 8, 2026 03:153,45722,556,0592,028,0001,014,0002,359,296
13Feb 8, 2026 01:553,45816,865,7821,014,0002,029,0002,490,368
14Feb 7, 2026 17:183,46520,621,7092,033,0001,016,0002,342,912
15Feb 8, 2026 03:153,47517,715,8732,039,0001,019,0002,355,200
16Feb 8, 2026 03:153,48924,270,2382,047,0001,023,0002,277,376
17Feb 8, 2026 03:153,49120,214,5302,048,0001,024,0002,347,008
18Feb 7, 2026 17:203,52520,076,3282,068,0001,034,0002,355,200
19Feb 7, 2026 17:194,10019,510,1413,608,00002,347,008
20Feb 7, 2026 17:204,23817,908,4283,729,00002,351,104
21Feb 8, 2026 03:154,47721,009,0782,955,000985,0002,527,232