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 1, 2026 18:19Victor MerckléVictor MerckléScore: 4,754Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 1, 2026 18:214,61711,873,7144,063,00002,117,632stderr
2Jul 1, 2026 18:214,71712,039,4864,151,00002,117,632stderr
3Jul 1, 2026 18:214,74812,265,5624,179,00002,117,632stderr
4Jul 1, 2026 18:214,75111,849,0904,181,00002,117,632stderr
5Jul 1, 2026 18:214,75411,893,9164,184,00002,117,632stderr
6Jul 1, 2026 18:214,85112,007,6604,269,00002,117,632stderr
7Jul 1, 2026 18:214,93212,032,8384,341,00002,117,632stderr
8Jul 1, 2026 18:215,10412,175,2664,492,00002,117,632stderr
9Jul 1, 2026 18:215,16312,356,3944,544,00002,117,632stderr