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 23, 2025 09:418QTK8QTKScore: 109,595Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 23, 2025 09:41109,094121,217,68192,003,0004,000,0002,457,600
2Jan 23, 2025 09:41109,595119,426,45692,426,0004,018,0002,404,352
3Jan 23, 2025 09:41110,031123,476,27092,835,0003,992,0002,519,040