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 7, 2026 05:28vahookvahookScore: 3,410Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 05:283,35618,736,256984,0001,969,0002,498,560
2Feb 7, 2026 05:303,35820,595,089985,0001,970,0002,490,368
3Feb 7, 2026 05:303,38621,554,761993,0001,987,0002,498,560
4Feb 7, 2026 05:283,41020,700,0851,000,0002,001,0002,494,464
5Feb 7, 2026 05:303,43417,933,0931,007,0002,015,0002,535,424
6Feb 7, 2026 05:283,45119,191,5021,012,0002,025,0002,490,368