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 11, 2025 02:05Alex KentAlex KentScore: 86,219Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 11, 2025 02:0586,058101,770,25774,722,0001,009,0002,277,376
2Jan 11, 2025 02:0586,202110,013,05973,862,0001,996,0002,269,184
3Jan 11, 2025 02:0586,210101,074,64874,867,000998,0002,277,376
4Jan 11, 2025 02:0586,211103,346,64174,868,000998,0002,277,376
5Jan 11, 2025 02:0586,219102,155,74673,877,0001,996,0002,289,664
6Jan 11, 2025 02:0586,264104,128,77973,915,0001,997,0002,265,088
7Jan 11, 2025 02:0586,283102,544,88974,930,000999,0002,289,664
8Jan 11, 2025 02:0586,286102,592,58573,934,0001,998,0002,277,376
9Jan 11, 2025 02:0586,381106,259,41874,015,0002,000,0002,269,184