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 23, 2026 12:20Victor MerckléVictor MerckléScore: 5,279Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 12:235,15112,068,5644,533,00002,113,536
2Jun 23, 2026 12:235,23212,145,9214,605,00002,113,536
3Jun 23, 2026 12:235,25712,091,8324,627,00002,113,536
4Jun 23, 2026 12:235,27512,461,0364,642,00002,113,536
5Jun 23, 2026 12:235,27912,497,6954,646,00002,113,536
6Jun 23, 2026 12:235,32712,215,3124,688,00002,113,536
7Jun 23, 2026 12:235,33912,135,7124,699,00002,113,536
8Jun 23, 2026 12:235,36912,187,5724,725,00002,113,536
9Jun 23, 2026 12:235,42112,579,7534,771,00002,113,536