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 18, 2025 09:48Ian MckibbenIan MckibbenScore: 55,258Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2025 09:4854,97778,711,40647,373,0001,007,0002,289,664
2Jan 18, 2025 09:4855,03277,162,48147,420,0001,008,0002,289,664
3Jan 18, 2025 09:4855,14877,254,49547,519,0001,011,0002,289,664
4Jan 18, 2025 09:4855,18676,117,02248,564,00002,289,664
5Jan 18, 2025 09:4855,25879,061,08347,614,0001,013,0002,289,664
6Jan 18, 2025 09:4855,26668,718,03347,621,0001,013,0002,265,088
7Jan 18, 2025 09:4855,33879,336,92447,683,0001,014,0002,289,664
8Jan 18, 2025 09:4855,52882,923,50246,871,0001,994,0002,289,664
9Jan 18, 2025 09:4855,54478,379,06146,884,0001,995,0002,289,664