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 18, 2025 20:39vahookvahookScore: 14,397Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2025 20:3814,15731,045,51411,420,0001,038,0002,424,832
2Jul 18, 2025 20:3814,23331,225,80011,482,0001,043,0002,465,792
3Jul 18, 2025 20:3814,24528,211,60112,536,00002,478,080
4Jul 18, 2025 20:3814,32626,891,65012,607,00002,473,984
5Jul 18, 2025 20:3814,33634,087,45612,616,00002,416,640
6Jul 18, 2025 20:3814,38831,054,60612,661,00002,482,176
7Jul 18, 2025 20:3914,39726,508,57112,669,00002,478,080
8Jul 18, 2025 20:3914,40625,573,27912,677,00002,486,272
9Jul 18, 2025 20:3914,42224,978,04111,634,0001,057,0002,486,272
10Jul 18, 2025 20:3814,43830,028,31912,705,00002,478,080
11Jul 18, 2025 20:3814,49230,116,16412,753,00002,322,432
12Jul 18, 2025 20:3814,53426,105,54112,790,00002,301,952