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 29, 2026 23:05Victor MerckléVictor MerckléScore: 4,638Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2026 23:084,62011,810,9234,066,00002,117,632stderr
2Jun 29, 2026 23:084,62511,857,4534,070,00002,117,632stderr
3Jun 29, 2026 23:084,63511,769,9374,079,00002,117,632stderr
4Jun 29, 2026 23:084,63611,805,4074,080,00002,117,632stderr
5Jun 29, 2026 23:084,63811,837,5314,082,00002,117,632stderr
6Jun 29, 2026 23:084,66011,829,1114,101,00002,117,632stderr
7Jun 29, 2026 23:084,73111,894,0364,164,00002,117,632stderr
8Jun 29, 2026 23:084,81411,862,6374,237,00002,117,632stderr
9Jun 29, 2026 23:085,10912,305,6404,496,00002,117,632stderr