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 15, 2024 06:20Ryan Chung Yi ShengRyan Chung Yi ShengScore: 7,353,855Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 15, 2024 06:207,308,8576,498,437,7666,431,793,80402,260,992
2Feb 15, 2024 06:207,353,8556,537,983,8896,471,392,56702,252,800
3Feb 15, 2024 06:207,356,3826,538,267,3216,473,616,54002,256,896