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:51Ian MckibbenIan MckibbenScore: 55,160Success
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:5154,78869,521,61947,209,0001,004,0002,281,472
2Jan 18, 2025 09:5155,00771,331,07747,398,0001,008,0002,265,088
3Jan 18, 2025 09:5155,02375,215,68247,412,0001,008,0002,289,664
4Jan 18, 2025 09:5155,15171,178,99948,533,00002,523,136
5Jan 18, 2025 09:5155,16069,043,02948,541,00002,289,664
6Jan 18, 2025 09:5155,19373,242,60947,559,0001,011,0002,289,664
7Jan 18, 2025 09:5155,29770,979,17747,648,0001,013,0002,289,664
8Jan 18, 2025 09:5155,39177,305,59447,729,0001,015,0002,289,664
9Jan 18, 2025 09:5155,56079,894,23046,898,0001,995,0002,269,184