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 09:22Josu San MartinJosu San MartinScore: 7,344Success
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 09:257,30515,364,2315,420,0001,009,0002,117,632
2Jun 22, 2026 09:257,31515,434,1755,422,0001,016,0002,117,632
3Jun 22, 2026 09:257,32815,458,0285,438,0001,011,0002,117,632
4Jun 22, 2026 09:257,34415,413,8185,440,0001,023,0002,117,632
5Jun 22, 2026 09:257,34415,353,6905,453,0001,010,0002,117,632
6Jun 22, 2026 09:257,41923,367,3625,471,0001,058,0002,117,632
7Jun 22, 2026 09:257,46215,516,0995,446,0001,121,0002,117,632
8Jun 22, 2026 09:257,47015,572,7035,472,0001,102,0002,117,632
9Jun 22, 2026 09:257,48115,544,5805,481,0001,103,0002,117,632