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 05:27Yuriy LyfenkoYuriy LyfenkoScore: 59,401Success
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 05:2659,362103,224,14952,238,69502,215,936
2Jun 18, 2021 05:2659,368106,608,53652,244,11702,220,032
3Jun 18, 2021 05:2759,387117,167,97052,260,67202,215,936
4Jun 18, 2021 05:2759,401103,763,75552,272,69302,207,744
5Jun 18, 2021 05:2759,413109,370,06352,283,00902,228,224
6Jun 18, 2021 05:2659,462124,309,62152,326,21202,220,032