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

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 16, 2026 16:203,30320,276,9221,938,000969,0002,441,216
2Feb 16, 2026 16:193,31018,029,5491,942,000971,0002,433,024
3Feb 16, 2026 16:183,31524,572,8151,945,000972,0002,441,216
4Feb 16, 2026 16:183,32019,827,6451,948,000974,0002,441,216
5Feb 16, 2026 16:193,32419,690,7171,950,000975,0002,437,120
6Feb 16, 2026 16:203,33617,022,5852,936,00002,433,024
7Feb 16, 2026 16:173,33919,655,9211,959,000979,0002,424,832
8Feb 16, 2026 16:173,34916,805,6481,965,000982,0002,277,376
9Feb 16, 2026 16:203,42620,484,4272,010,0001,005,0002,433,024
10Feb 16, 2026 16:203,81419,808,4533,356,00002,277,376
11Feb 16, 2026 16:173,81720,539,4093,359,00002,277,376
12Feb 16, 2026 16:203,89318,607,8833,426,00002,433,024
13Feb 16, 2026 16:203,93817,106,0273,465,00002,277,376
14Feb 16, 2026 16:183,94919,054,6503,475,00002,437,120
15Feb 16, 2026 16:193,95917,889,0562,323,0001,161,0002,437,120