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:09Sergey StreminSergey StreminScore: 70,921Success
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:0970,748122,309,98862,257,81002,228,224
2Nov 10, 2021 13:1070,833124,803,76562,333,01302,256,896
3Nov 10, 2021 13:1070,864126,627,09262,360,10802,244,608
4Nov 10, 2021 13:0970,921123,160,14062,410,69002,240,512
5Nov 10, 2021 13:1071,070127,757,86362,541,26302,232,320
6Nov 10, 2021 13:0971,177125,474,59462,636,03802,232,320