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 listJul 31, 2026 21:00LatentSearchLatentSearchScore: 56,038Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2026 21:0355,74259,724,81646,830,0002,223,0002,117,632
2Jul 31, 2026 21:0355,80058,977,22446,889,0002,215,0002,117,632
3Jul 31, 2026 21:0355,81559,042,92546,890,0002,228,0002,117,632
4Jul 31, 2026 21:0356,02168,484,39747,033,0002,266,0002,117,632
5Jul 31, 2026 21:0356,03859,196,10647,107,0002,207,0002,117,632
6Jul 31, 2026 21:0356,05559,201,38847,090,0002,239,0002,117,632
7Jul 31, 2026 21:0356,07260,107,95347,123,0002,221,0002,117,632
8Jul 31, 2026 21:0356,08269,356,01647,052,0002,301,0002,117,632
9Jul 31, 2026 21:0356,12269,581,46847,102,0002,286,0002,117,632