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 19, 2025 22:16vahookvahookScore: 11,370Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 19, 2025 22:1611,32321,662,7778,968,000996,0002,273,280
2Jul 19, 2025 22:1611,33626,847,8998,979,000997,0002,269,184
3Jul 19, 2025 22:1611,33823,904,1138,980,000997,0002,490,368
4Jul 19, 2025 22:1611,36127,070,1218,999,000999,0002,273,280
5Jul 19, 2025 22:1611,37029,082,4279,006,0001,000,0002,494,464
6Jul 19, 2025 22:1611,40024,310,2429,029,0001,003,0002,531,328
7Jul 19, 2025 22:1611,40328,049,0529,032,0001,003,0002,273,280
8Jul 19, 2025 22:1611,40624,672,8749,034,0001,003,0002,531,328
9Jul 19, 2025 22:1611,43329,187,1379,055,0001,006,0002,498,560