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 listMar 20, 2026 17:33Yuriy LyfenkoYuriy LyfenkoScore: 12,516Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 20, 2026 17:2112,38925,628,3629,911,000991,0002,351,104
2Mar 20, 2026 17:2112,42725,016,99910,936,00002,318,336
3Mar 20, 2026 17:2112,42831,379,5909,943,000994,0002,342,912
4Mar 20, 2026 17:2112,47625,886,6598,983,0001,996,0002,424,832
5Mar 20, 2026 17:2112,48524,091,8317,991,0002,996,0002,322,432
6Mar 20, 2026 17:3312,50729,040,29610,006,0001,000,0002,318,336
7Mar 20, 2026 17:2112,51627,846,8989,012,0002,002,0002,314,240
8Mar 20, 2026 17:3312,55328,919,93910,043,0001,004,0002,334,720
9Mar 20, 2026 17:2112,58027,797,6599,058,0002,012,0002,314,240
10Mar 20, 2026 17:2112,59427,341,33210,076,0001,007,0002,347,008
11Mar 20, 2026 17:3312,61031,854,73010,089,0001,008,0002,322,432
12Mar 20, 2026 17:2113,03237,561,44510,426,0001,042,0002,310,144