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 listJul 6, 2026 20:44Victor MerckléVictor MerckléScore: 3,651Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 6, 2026 20:483,62611,071,3413,191,00002,117,632stderr
2Jul 6, 2026 20:483,64011,113,4393,204,00002,117,632stderr
3Jul 6, 2026 20:483,64711,110,5603,210,00002,117,632stderr
4Jul 6, 2026 20:483,65011,048,0083,212,00002,117,632stderr
5Jul 6, 2026 20:483,65111,036,8793,213,00002,117,632stderr
6Jul 6, 2026 20:483,65211,038,3863,214,00002,117,632stderr
7Jul 6, 2026 20:483,66311,080,0303,224,00002,117,632stderr
8Jul 6, 2026 20:483,73911,084,2153,291,00002,117,632stderr
9Jul 6, 2026 20:483,76212,861,4203,311,00002,117,632stderr