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 4, 2026 14:52vahookvahookScore: 3,719Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 14:523,60317,307,0741,057,0002,114,0002,502,656
2Feb 4, 2026 14:523,68520,039,4801,081,0002,162,0002,494,464
3Feb 4, 2026 14:523,71716,657,3472,181,0001,090,0002,277,376
4Feb 4, 2026 14:523,71924,197,4432,182,0001,091,0002,277,376
5Feb 4, 2026 14:523,73821,173,8082,193,0001,096,0002,494,464
6Feb 4, 2026 14:523,74021,255,1592,194,0001,097,0002,498,560