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 22:17vahookvahookScore: 3,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 5, 2026 22:183,45518,293,8981,013,0002,027,0002,281,472
2Feb 5, 2026 22:183,46117,930,5521,015,0002,031,0002,498,560
3Feb 5, 2026 22:183,46522,902,3561,016,0002,033,0002,502,656
4Feb 5, 2026 22:173,49220,307,0051,024,0002,049,0002,498,560
5Feb 5, 2026 22:173,49817,939,3041,026,0002,052,0002,498,560
6Feb 5, 2026 22:173,50219,185,0301,027,0002,055,0002,502,656
7Feb 5, 2026 22:173,50920,032,7291,029,0002,059,0002,502,656
8Feb 5, 2026 22:173,51317,737,3491,030,0002,061,0002,494,464
9Feb 5, 2026 22:173,55215,309,0331,042,0002,084,0002,498,560