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 15, 2025 07:47Ian MckibbenIan MckibbenScore: 7,949,526Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 15, 2025 07:477,927,9997,007,925,7346,975,640,000999,0002,289,664
2Jan 15, 2025 07:477,931,6697,014,265,4216,977,870,0001,999,0002,289,664
3Jan 15, 2025 07:477,934,8707,010,141,0786,978,688,0003,998,0002,289,664
4Jan 15, 2025 07:477,946,8667,016,694,2206,991,243,0001,999,0002,371,584
5Jan 15, 2025 07:477,949,5267,019,473,2736,994,584,000999,0002,277,376
6Jan 15, 2025 07:477,955,5647,027,336,3426,999,897,000999,0002,289,664
7Jan 15, 2025 07:477,967,1577,040,839,1717,009,099,0001,999,0002,277,376
8Jan 15, 2025 07:477,976,2267,048,442,5817,015,081,0003,998,0002,277,376
9Jan 15, 2025 07:478,007,4387,071,307,5107,044,546,0001,999,0002,277,376