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 23, 2024 19:21CemaCemaScore: 7,363,241Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 23, 2024 19:217,307,5216,500,640,9486,430,618,45402,265,088
2May 23, 2024 19:217,363,2416,538,122,9726,479,652,00702,260,992
3May 23, 2024 19:217,384,9676,561,796,8756,498,770,81402,265,088