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 8, 2025 15:51Alex KentAlex KentScore: 907,661Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 8, 2025 15:51906,351824,763,739795,591,0001,998,0002,289,664
2Jan 8, 2025 15:51907,266829,001,832797,394,0001,000,0002,289,664
3Jan 8, 2025 15:51907,268827,944,435794,395,0004,001,0002,289,664
4Jan 8, 2025 15:51907,364824,746,373795,482,0002,998,0002,269,184
5Jan 8, 2025 15:51907,661821,605,510795,743,0002,999,0002,269,184
6Jan 8, 2025 15:51907,675824,609,581796,755,0001,999,0002,277,376
7Jan 8, 2025 15:51908,268824,608,950798,276,0001,000,0002,265,088
8Jan 8, 2025 15:51908,924829,202,052798,854,000999,0002,289,664
9Jan 8, 2025 15:51909,600828,915,126796,451,0003,997,0002,289,664