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 18:37vahookvahookScore: 4,498Success
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 17:584,46420,088,1301,964,0001,964,0002,498,560
2Feb 3, 2026 17:584,47325,655,3951,968,0001,968,0002,498,560
3Feb 3, 2026 18:374,47524,797,4451,969,0001,969,0002,273,280
4Feb 3, 2026 18:374,49819,987,6411,979,0001,979,0002,277,376
5Feb 3, 2026 17:584,50519,505,3271,982,0001,982,0002,277,376
6Feb 3, 2026 18:374,52022,559,6061,989,0001,989,0002,277,376