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 listJun 18, 2021 14:18Yuriy LyfenkoYuriy LyfenkoScore: 62,274Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 18, 2021 20:3562,075119,770,92854,625,67502,191,360
2Jun 18, 2021 20:3562,169116,320,24154,708,71702,191,360
3Jun 18, 2021 14:1262,172118,068,96154,711,60302,187,264
4Jun 18, 2021 14:1262,234113,328,81654,765,81602,191,360
5Jun 18, 2021 14:1262,274128,957,46454,801,19002,183,168
6Jun 18, 2021 14:1862,282119,417,44054,808,47202,195,456
7Jun 18, 2021 14:1862,289120,785,00754,814,26002,191,360
8Jun 18, 2021 20:3562,297114,546,36754,821,11902,191,360
9Jun 18, 2021 14:1862,375120,416,90054,890,03602,183,168