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 22, 2026 18:48Josu San MartinJosu San MartinScore: 5,588Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 22, 2026 18:515,49712,333,5724,838,00002,113,536
2Jun 22, 2026 18:515,49712,339,1194,838,00002,113,536
3Jun 22, 2026 18:515,57912,412,4774,910,00002,113,536
4Jun 22, 2026 18:515,58412,379,0484,914,00002,113,536
5Jun 22, 2026 18:515,58812,361,8774,918,00002,113,536
6Jun 22, 2026 18:515,59812,324,5554,927,00002,113,536
7Jun 22, 2026 18:515,60512,397,8834,933,00002,113,536
8Jun 22, 2026 18:515,60712,289,1214,935,00002,113,536
9Jun 22, 2026 18:515,62012,391,2574,946,00002,113,536