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 listNov 10, 2021 13:13Sergey StreminSergey StreminScore: 66,625Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 10, 2021 13:1266,349123,606,94958,386,93402,240,512
2Nov 10, 2021 13:1366,535117,950,15458,550,54202,236,416
3Nov 10, 2021 13:1266,551113,946,28658,564,87002,240,512
4Nov 10, 2021 13:1266,625118,096,98558,629,86002,228,224
5Nov 10, 2021 13:1366,682129,708,63058,679,84002,252,800
6Nov 10, 2021 13:1366,879138,630,73358,853,80402,232,320