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 listAug 15, 2026 12:18Tomislav TunkovicTomislav TunkovicScore: 3,168Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 15, 2026 12:203,15110,940,8682,773,000024,576stderr
2Aug 15, 2026 12:203,15210,988,3632,774,000024,576stderr
3Aug 15, 2026 12:203,15210,936,0002,774,000024,576stderr
4Aug 15, 2026 12:203,15510,920,6852,777,000024,576stderr
5Aug 15, 2026 12:203,16810,866,7582,788,000024,576stderr
6Aug 15, 2026 12:203,17910,953,9082,798,000024,576stderr
7Aug 15, 2026 12:203,18010,901,1392,799,000024,576stderr
8Aug 15, 2026 12:203,18710,843,6292,805,000024,576stderr
9Aug 15, 2026 12:203,19511,311,5112,812,000024,576stderr