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 5, 2026 20:20vahookvahookScore: 3,485Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 5, 2026 20:203,44722,340,6621,011,0002,022,0002,502,656
2Feb 5, 2026 20:203,45021,338,2111,012,0002,024,0002,498,560
3Feb 5, 2026 20:203,45825,339,5911,014,0002,029,0002,494,464
4Feb 5, 2026 20:203,47523,112,1271,019,0002,039,0002,494,464
5Feb 5, 2026 20:203,48521,449,9591,022,0002,045,0002,494,464
6Feb 5, 2026 20:203,48520,546,8791,022,0002,045,0002,498,560
7Feb 5, 2026 20:203,48815,052,6821,023,0002,046,0002,498,560
8Feb 5, 2026 20:203,48921,795,1461,023,0002,047,0002,494,464
9Feb 5, 2026 20:203,49118,626,8931,024,0002,048,0002,502,656