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 listSep 12, 2026 08:09Haha ExpertHaha ExpertScore: 114,337Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 12, 2026 08:12113,839110,603,26099,179,0001,000,0002,117,632
2Sep 12, 2026 08:12113,977108,740,67899,300,0001,000,0002,117,632
3Sep 12, 2026 08:12114,235110,543,10399,518,0001,009,0002,117,632
4Sep 12, 2026 08:12114,315109,222,020100,598,00002,117,632
5Sep 12, 2026 08:12114,337109,130,371100,617,00002,117,632
6Sep 12, 2026 08:12114,493109,291,03999,754,0001,000,0002,117,632
7Sep 12, 2026 08:12114,545109,406,940100,800,00002,117,632
8Sep 12, 2026 08:12114,606109,331,993100,854,00002,117,632
9Sep 12, 2026 08:12115,125109,842,795101,310,00002,117,632