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 23, 2026 07:38Victor MerckléVictor MerckléScore: 6,529Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 07:416,42813,241,4445,657,00002,117,632stderr
2Jun 23, 2026 07:416,43013,211,7545,659,00002,117,632stderr
3Jun 23, 2026 07:416,43913,230,0065,667,00002,117,632stderr
4Jun 23, 2026 07:416,52013,644,3915,738,00002,117,632stderr
5Jun 23, 2026 07:416,52913,283,4675,746,00002,117,632stderr
6Jun 23, 2026 07:416,54013,246,1445,756,00002,117,632stderr
7Jun 23, 2026 07:416,55013,305,7535,764,00002,117,632stderr
8Jun 23, 2026 07:416,64713,736,2195,850,00002,117,632stderr
9Jun 23, 2026 07:416,83413,803,7436,014,00002,117,632stderr