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 17:24Josu San MartinJosu San MartinScore: 5,647Success
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 17:275,56012,468,4174,893,00002,113,536
2Jun 22, 2026 17:275,57012,484,1074,902,00002,113,536
3Jun 22, 2026 17:275,63412,818,3634,958,00002,113,536
4Jun 22, 2026 17:275,63912,454,8724,963,00002,113,536
5Jun 22, 2026 17:275,64712,773,1824,970,00002,113,536
6Jun 22, 2026 17:275,64712,776,4374,970,00002,113,536
7Jun 22, 2026 17:275,65012,457,7594,972,00002,113,536
8Jun 22, 2026 17:275,65712,859,4794,979,00002,113,536
9Jun 22, 2026 17:275,66112,852,5744,982,00002,113,536