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 29, 2026 14:21Victor MerckléVictor MerckléScore: 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
1Aug 29, 2026 14:243,47211,263,9013,056,00002,117,632stderr
2Aug 29, 2026 14:243,47711,263,7843,060,00002,117,632stderr
3Aug 29, 2026 14:243,47911,270,7493,062,00002,117,632stderr
4Aug 29, 2026 14:243,48411,257,9243,066,00002,117,632stderr
5Aug 29, 2026 14:243,49811,318,6303,079,00002,117,632stderr
6Aug 29, 2026 14:243,58711,277,2663,157,00002,117,632stderr
7Aug 29, 2026 14:243,58811,313,7273,158,00002,117,632stderr
8Aug 29, 2026 14:243,59711,295,1803,166,00002,117,632stderr
9Aug 29, 2026 14:243,61111,333,7193,178,00002,117,632stderr