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 listMay 19, 2026 10:56Josu San MartinJosu San MartinScore: 11,251Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2026 10:5811,07318,934,3388,741,0001,004,0002,113,536
2May 19, 2026 10:5811,09220,509,7938,703,0001,058,0002,117,632
3May 19, 2026 10:5811,20219,835,0948,851,0001,007,0002,117,632
4May 19, 2026 10:5811,22319,407,9628,775,0001,102,0002,117,632
5May 19, 2026 10:5811,25121,229,2998,896,0001,005,0002,117,632
6May 19, 2026 10:5811,25720,723,9748,834,0001,073,0002,117,632
7May 19, 2026 10:5811,46419,353,8238,938,0001,151,0002,117,632
8May 19, 2026 10:5811,48219,904,6259,091,0001,014,0002,117,632
9May 19, 2026 10:5811,73521,592,81110,327,00002,117,632