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 listFeb 8, 2025 02:28mgildermgilderError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 8, 2025 02:2800000Error: expected "51449900520754 ", got "Starting! 4000000 length Got to index: 0 Got to index: 1000 Got to index: 2000 Got to index: 3000 Got to index: 4000 Got to index: 5000 Got to index: 6000 Got to index: 7000 Got to index: 8000 Got to index: 9000 ...