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 21:50Victor MerckléVictor MerckléScore: 3,831Success
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 21:533,69811,199,1203,255,00002,125,824stderr
2Jul 6, 2026 21:533,71011,204,3663,265,00002,117,632stderr
3Jul 6, 2026 21:533,73011,237,0893,283,00002,125,824stderr
4Jul 6, 2026 21:533,74611,191,1303,297,00002,125,824stderr
5Jul 6, 2026 21:533,83111,174,8523,372,00002,117,632stderr
6Jul 6, 2026 21:533,83211,284,0223,373,00002,117,632stderr
7Jul 6, 2026 21:533,83211,284,9113,373,00002,125,824stderr
8Jul 6, 2026 21:533,83611,160,1453,376,00002,125,824stderr
9Jul 6, 2026 21:533,85111,275,8243,389,00002,117,632stderr