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 2, 2026 03:59Victor MerckléVictor MerckléScore: 3,435Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 2, 2026 04:023,32111,112,9482,923,00002,117,632stderr
2Aug 2, 2026 04:023,33211,163,2722,933,00002,117,632stderr
3Aug 2, 2026 04:023,33411,197,8102,934,00002,117,632stderr
4Aug 2, 2026 04:023,43211,186,5263,021,00002,117,632stderr
5Aug 2, 2026 04:023,43511,753,8843,023,00002,117,632stderr
6Aug 2, 2026 04:023,44311,770,8383,030,00002,117,632stderr
7Aug 2, 2026 04:023,44311,190,7363,030,00002,117,632stderr
8Aug 2, 2026 04:023,44711,194,9953,034,00002,117,632stderr
9Aug 2, 2026 04:023,45111,200,2003,037,00002,117,632stderr