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 listDec 25, 2023 21:35Yurkov AlekseyYurkov AlekseyScore: 260,890Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 25, 2023 21:35254,872293,034,713224,287,46302,289,664
2Dec 25, 2023 21:35255,209296,372,065224,583,68902,293,760
3Dec 25, 2023 21:35256,385289,260,218225,619,07502,285,568
4Dec 25, 2023 21:35260,890289,175,881229,583,37802,293,760
5Dec 25, 2023 21:35267,803297,133,646235,666,78202,285,568
6Dec 25, 2023 21:35267,907295,067,645235,758,21302,285,568