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 16, 2025 22:41Ian MckibbenIan MckibbenScore: 16,481,033Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 16, 2025 22:4116,470,33614,522,867,10114,083,069,000410,827,0002,285,568
2Jan 16, 2025 22:4116,481,03314,532,509,05014,068,510,000434,799,0002,285,568
3Jan 16, 2025 22:4116,538,95014,584,455,13114,148,464,000405,812,0002,285,568