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 listJan 18, 2026 01:29Josu San MartinJosu San MartinScore: 19,659Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2026 01:2919,49334,100,61115,136,0002,018,0002,420,736
2Jan 18, 2026 01:2919,55343,327,84715,183,0002,024,0002,424,832
3Jan 18, 2026 01:2919,63438,206,85716,262,0001,016,0002,412,544
4Jan 18, 2026 01:2919,65141,421,65113,224,0004,069,0002,416,640
5Jan 18, 2026 01:2919,65937,735,23115,265,0002,035,0002,334,720
6Jan 18, 2026 01:2919,66943,275,91316,291,0001,018,0002,416,640
7Jan 18, 2026 01:2919,68541,683,28517,323,00002,420,736
8Jan 18, 2026 01:2919,69249,054,40615,291,0002,038,0002,420,736
9Jan 18, 2026 01:2919,90541,509,41915,456,0002,060,0002,420,736