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 listSep 19, 2026 13:27Andrew EpsteinAndrew EpsteinScore: 16,488Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 19, 2026 13:3916,46124,524,4549,333,0005,153,0002,129,920stderr
2Sep 19, 2026 13:3916,46524,535,7819,329,0005,161,0002,129,920stderr
3Sep 19, 2026 13:3916,46824,482,2929,333,0005,159,0002,129,920stderr
4Sep 19, 2026 13:3916,47024,505,1339,335,0005,159,0002,129,920stderr
5Sep 19, 2026 13:3916,48824,596,6969,348,0005,162,0002,129,920stderr
6Sep 19, 2026 13:3916,50624,497,7879,361,0005,165,0002,129,920stderr
7Sep 19, 2026 13:3916,51225,041,3579,364,0005,167,0002,129,920stderr
8Sep 19, 2026 13:3916,56824,567,6159,396,0005,184,0002,129,920stderr
9Sep 19, 2026 13:3916,63024,587,9099,450,0005,185,0002,129,920stderr