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 15:32Josu San MartinJosu San MartinScore: 5,767Success
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 15:355,74012,731,2235,052,00002,113,536
2Jun 22, 2026 15:355,74412,623,6155,055,00002,113,536
3Jun 22, 2026 15:355,75712,581,5265,067,00002,113,536
4Jun 22, 2026 15:355,76212,657,9525,071,00002,113,536
5Jun 22, 2026 15:355,76712,616,7925,075,00002,113,536
6Jun 22, 2026 15:355,85412,939,5085,152,00002,113,536
7Jun 22, 2026 15:355,86512,689,6815,162,00002,113,536
8Jun 22, 2026 15:355,86712,701,9305,163,00002,113,536
9Jun 22, 2026 15:355,87512,643,1785,170,00002,113,536