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 27, 2026 19:49Victor MerckléVictor MerckléScore: 5,119Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2026 19:515,10112,213,1314,489,00002,113,536
2Jun 27, 2026 19:515,11012,187,9314,497,00002,113,536
3Jun 27, 2026 19:515,11212,220,1824,499,00002,113,536
4Jun 27, 2026 19:515,11712,216,5234,503,00002,113,536
5Jun 27, 2026 19:515,11912,184,5704,505,00002,113,536
6Jun 27, 2026 19:515,23612,307,1214,608,00002,113,536
7Jun 27, 2026 19:515,25512,272,1814,625,00002,113,536
8Jun 27, 2026 19:515,26012,564,6554,629,00002,113,536
9Jun 27, 2026 19:515,27912,584,7494,646,00002,113,536