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 listOct 7, 2023 18:37Pavel ZagrebinPavel ZagrebinScore: 494,940Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 7, 2023 18:37494,845494,757,975435,463,69202,244,608
2Oct 7, 2023 18:37494,940496,355,504435,547,35202,232,320
3Oct 7, 2023 18:37495,197505,146,525435,773,74202,244,608