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 15:02Victor MerckléVictor MerckléScore: 3,357Success
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 15:043,24411,050,6172,855,00002,117,632stderr
2Aug 29, 2026 15:043,25011,112,5062,860,00002,117,632stderr
3Aug 29, 2026 15:043,26311,098,6692,872,00002,117,632stderr
4Aug 29, 2026 15:043,34711,022,4462,946,00002,117,632stderr
5Aug 29, 2026 15:043,35711,122,5502,955,00002,117,632stderr
6Aug 29, 2026 15:043,36011,059,7022,957,00002,117,632stderr
7Aug 29, 2026 15:043,36411,026,5432,961,00002,117,632stderr
8Aug 29, 2026 15:043,37111,106,2992,967,00002,117,632stderr
9Aug 29, 2026 15:043,37711,096,9182,972,00002,117,632stderr