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 listSep 2, 2026 14:54Victor MerckléVictor MerckléScore: 3,212Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 2, 2026 14:573,19710,948,8062,814,00002,117,632stderr
2Sep 2, 2026 14:573,20110,961,4152,817,00002,117,632stderr
3Sep 2, 2026 14:573,20410,993,9892,820,00002,117,632stderr
4Sep 2, 2026 14:573,20511,608,0512,821,00002,117,632stderr
5Sep 2, 2026 14:573,21211,539,5872,827,00002,117,632stderr
6Sep 2, 2026 14:573,22012,507,8142,834,00002,117,632stderr
7Sep 2, 2026 14:573,22611,566,2902,839,00002,117,632stderr
8Sep 2, 2026 14:573,22711,601,3302,840,00002,117,632stderr
9Sep 2, 2026 14:573,23011,011,8972,843,00002,117,632stderr