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 listJun 30, 2026 00:13Victor MerckléVictor MerckléScore: 4,889Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 30, 2026 00:164,76911,908,6404,197,00002,117,632stderr
2Jun 30, 2026 00:164,78611,940,5084,212,00002,117,632stderr
3Jun 30, 2026 00:164,78911,900,7204,215,00002,117,632stderr
4Jun 30, 2026 00:164,88411,955,2194,298,00002,117,632stderr
5Jun 30, 2026 00:164,88911,998,7614,303,00002,117,632stderr
6Jun 30, 2026 00:164,89612,023,6804,309,00002,117,632stderr
7Jun 30, 2026 00:164,90211,998,1694,314,00002,117,632stderr
8Jun 30, 2026 00:164,91012,047,1604,321,00002,117,632stderr
9Jun 30, 2026 00:165,03712,129,0834,433,00002,117,632stderr