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 30, 2026 06:11Andrew EpsteinAndrew EpsteinScore: 324,172Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 30, 2026 06:14322,795293,002,505283,054,0001,006,0002,125,824stderr
2Sep 30, 2026 06:14322,938293,122,614283,104,0001,082,0002,125,824stderr
3Sep 30, 2026 06:14323,040293,075,502283,266,0001,010,0002,125,824stderr
4Sep 30, 2026 06:14323,862293,990,324283,981,0001,018,0002,125,824stderr
5Sep 30, 2026 06:14324,172294,310,562284,102,0001,170,0002,125,824stderr
6Sep 30, 2026 06:14324,213294,132,123284,300,0001,008,0002,125,824stderr
7Sep 30, 2026 06:14324,587294,495,830284,605,0001,032,0002,125,824stderr
8Sep 30, 2026 06:14324,602295,180,633284,524,0001,126,0002,125,824stderr
9Sep 30, 2026 06:14324,819294,593,190284,830,0001,011,0002,125,824stderr