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 9, 2025 12:55Alex KentAlex KentScore: 674,769Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 9, 2025 12:55673,502613,659,082590,684,0001,998,0002,273,280
2Jan 9, 2025 12:55673,911618,328,643592,042,0001,000,0002,289,664
3Jan 9, 2025 12:55674,695616,805,617591,733,0001,999,0002,289,664
4Jan 9, 2025 12:55674,698620,234,839591,735,0001,999,0002,281,472
5Jan 9, 2025 12:55674,769618,002,475593,797,00002,289,664
6Jan 9, 2025 12:55675,053622,130,856592,047,0002,000,0002,281,472
7Jan 9, 2025 12:55675,319616,986,495594,281,00002,285,568
8Jan 9, 2025 12:55675,868618,414,083592,765,0001,999,0002,289,664
9Jan 9, 2025 12:55676,464617,968,833594,288,0001,000,0002,289,664