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 10, 2026 18:30Victor MerckléVictor MerckléScore: 8,542Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 10, 2026 18:338,49816,977,9136,356,0001,123,0002,142,208
2Jun 10, 2026 18:338,51316,930,1786,346,0001,146,0002,142,208
3Jun 10, 2026 18:338,52517,116,0726,244,0001,258,0002,142,208
4Jun 10, 2026 18:338,53016,596,0326,359,0001,148,0002,142,208
5Jun 10, 2026 18:338,54216,974,6876,284,0001,233,0002,142,208
6Jun 10, 2026 18:338,57814,963,0966,227,0001,322,0002,142,208
7Jun 10, 2026 18:338,61217,079,6326,353,0001,226,0002,142,208
8Jun 10, 2026 18:338,61916,842,5496,306,0001,279,0002,142,208
9Jun 10, 2026 18:338,68516,531,8886,356,0001,287,0002,142,208