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 20, 2026 16:07Joshua Bergman AnderssonJoshua Bergman AnderssonScore: 12,558,183Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2026 16:0712,459,29210,997,323,08310,963,178,000999,0002,523,136
2Jan 20, 2026 16:0712,481,60911,010,488,43310,980,818,0002,998,0002,281,472
3Jan 20, 2026 16:0712,510,54211,035,512,62511,003,280,0005,997,0002,281,472
4Jan 20, 2026 16:0712,543,01511,065,178,56511,034,855,0002,998,0002,293,760
5Jan 20, 2026 16:0712,558,18311,079,223,84111,050,202,000999,0002,265,088
6Jan 20, 2026 16:0712,581,98911,103,686,99511,070,152,0001,998,0002,289,664
7Jan 20, 2026 16:0712,591,15111,107,219,94111,078,214,0001,999,0002,293,760
8Jan 20, 2026 16:0712,615,24011,136,297,38211,099,412,0001,999,0002,281,472
9Jan 20, 2026 16:0712,617,55611,134,158,74211,100,451,0002,998,0002,281,472