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 01:23Josu San MartinJosu San MartinScore: 7,772Success
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 01:267,63515,685,1065,692,0001,027,0002,117,632
2Jun 22, 2026 01:267,66315,757,0635,734,0001,010,0002,117,632
3Jun 22, 2026 01:267,72715,635,0835,713,0001,087,0002,117,632
4Jun 22, 2026 01:267,73015,740,4085,703,0001,100,0002,117,632
5Jun 22, 2026 01:267,77215,730,8365,730,0001,110,0002,117,632
6Jun 22, 2026 01:267,78415,728,4335,740,0001,110,0002,117,632
7Jun 22, 2026 01:267,78516,004,3255,738,0001,113,0002,117,632
8Jun 22, 2026 01:267,83815,772,5775,813,0001,085,0002,117,632
9Jun 22, 2026 01:267,84615,843,1785,815,0001,090,0002,117,632