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 5, 2026 22:53Victor MerckléVictor MerckléScore: 6,198Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2026 22:556,08813,235,7505,358,00002,117,632stderr
2Jul 5, 2026 22:556,09313,238,6965,362,00002,117,632stderr
3Jul 5, 2026 22:556,10613,283,0835,374,00002,117,632stderr
4Jul 5, 2026 22:556,19613,255,5745,453,00002,117,632stderr
5Jul 5, 2026 22:556,19813,214,2655,455,00002,117,632stderr
6Jul 5, 2026 22:556,20013,278,4345,456,00002,117,632stderr
7Jul 5, 2026 22:556,23013,299,8745,483,00002,117,632stderr
8Jul 5, 2026 22:556,23613,284,0605,488,00002,117,632stderr
9Jul 5, 2026 22:556,37513,372,9575,610,00002,117,632stderr