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 21:10Josu San MartinJosu San MartinScore: 5,348Success
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 21:135,30012,155,0094,664,00002,113,536
2Jun 22, 2026 21:135,30712,153,7124,671,00002,113,536
3Jun 22, 2026 21:135,30912,228,9584,672,00002,113,536
4Jun 22, 2026 21:135,30912,183,9174,672,00002,113,536
5Jun 22, 2026 21:135,34812,180,3854,707,00002,113,536
6Jun 22, 2026 21:135,39712,209,8714,750,00002,113,536
7Jun 22, 2026 21:135,42712,244,0274,776,00002,113,536
8Jun 22, 2026 21:135,43712,186,4444,785,00002,113,536
9Jun 22, 2026 21:135,44412,219,2364,791,00002,113,536