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 23, 2026 02:48Josu San MartinJosu San MartinScore: 5,176Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 02:525,14011,854,6374,524,00002,113,536
2Jun 23, 2026 02:525,14511,983,5974,528,00002,113,536
3Jun 23, 2026 02:525,15512,168,7094,537,00002,113,536
4Jun 23, 2026 02:525,16313,385,0904,544,00002,113,536
5Jun 23, 2026 02:525,17613,067,0544,555,00002,113,536
6Jun 23, 2026 02:525,23611,874,7354,608,00002,113,536
7Jun 23, 2026 02:525,26212,226,6274,631,00002,113,536
8Jun 23, 2026 02:525,27612,264,7354,643,00002,113,536
9Jun 23, 2026 02:525,74312,475,0915,054,00002,113,536