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 19, 2021 12:37Andrey TsvetkovAndrey TsvetkovScore: 2,028,461Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 20, 2021 14:212,021,2691,852,721,9581,778,716,91802,199,552
2Jun 19, 2021 12:372,025,0651,843,775,2151,782,057,14302,191,360
3Jun 20, 2021 14:212,026,0371,858,055,0491,782,912,38002,297,856
4Jun 19, 2021 12:372,028,4611,838,945,4391,785,045,44502,306,048
5Jun 19, 2021 12:372,031,2241,855,119,8161,787,476,89502,252,800
6Jun 20, 2021 14:212,032,1071,840,820,9571,788,254,46002,187,264