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 15:268QTK8QTKScore: 39,818Success
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 15:2639,67466,207,57930,923,0003,990,0002,457,600
2Jan 23, 2025 15:2639,81861,674,07532,037,0003,003,0002,506,752
3Jan 23, 2025 15:2639,92258,178,64831,116,0004,015,0002,367,488