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:23Sergey StreminSergey StreminScore: 67,135Success
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:2366,899124,378,10258,871,46702,232,320
2Nov 10, 2021 13:2367,095123,407,06359,043,26402,236,416
3Nov 10, 2021 13:2367,098115,272,24359,045,86202,244,608
4Nov 10, 2021 13:2367,135114,396,37259,078,37502,232,320
5Nov 10, 2021 13:2367,376131,676,76759,290,78702,236,416
6Nov 10, 2021 13:2367,404135,657,29159,315,74102,240,512