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 listAug 4, 2026 01:45Victor MerckléVictor MerckléScore: 3,569Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 4, 2026 01:483,55711,275,6613,131,00002,117,632stderr
2Aug 4, 2026 01:483,55911,289,3593,132,00002,117,632stderr
3Aug 4, 2026 01:483,55911,169,3583,132,00002,117,632stderr
4Aug 4, 2026 01:483,56411,131,6313,137,00002,117,632stderr
5Aug 4, 2026 01:483,56911,121,0443,141,00002,117,632stderr
6Aug 4, 2026 01:483,57711,327,6503,148,00002,117,632stderr
7Aug 4, 2026 01:483,58211,114,4693,153,00002,117,632stderr
8Aug 4, 2026 01:483,58711,212,8653,157,00002,117,632stderr
9Aug 4, 2026 01:483,60017,972,2843,168,00002,117,632stderr