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 listMay 15, 2024 02:25exebookexebookScore: 584,234Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 15, 2024 02:25583,650578,007,670513,612,22202,260,992
2May 15, 2024 02:25584,234573,514,433514,126,07802,248,704
3May 15, 2024 02:25585,224574,253,124514,997,11002,244,608