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 3, 2026 22:52vahookvahookScore: 3,986Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 3, 2026 22:523,92819,172,4122,305,0001,152,0002,277,376
2Feb 3, 2026 22:523,93417,451,2592,308,0001,154,0002,498,560
3Feb 3, 2026 22:523,97823,282,5742,334,0001,167,0002,494,464
4Feb 3, 2026 22:523,98318,692,8292,337,0001,168,0002,498,560
5Feb 3, 2026 22:523,98620,625,1912,339,0001,169,0002,494,464
6Feb 3, 2026 22:523,98919,462,7622,340,0001,170,0002,498,560
7Feb 3, 2026 22:523,99519,255,2152,344,0001,172,0002,502,656
8Feb 3, 2026 22:524,00217,210,1932,348,0001,174,0002,494,464
9Feb 3, 2026 22:524,01616,721,7432,356,0001,178,0002,277,376