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 listOct 6, 2023 13:39apuxbtapuxbtScore: 24,978Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 13:3924,61650,146,17119,599,0002,063,0002,293,760
2Oct 6, 2023 13:3924,72551,257,47718,650,0003,108,0002,297,856
3Oct 6, 2023 13:3924,73147,974,56518,654,0003,109,0002,293,760
4Oct 6, 2023 13:3924,88047,412,68620,899,000995,0002,392,064
5Oct 6, 2023 13:3924,88951,185,49719,911,0001,991,0002,281,472
6Oct 6, 2023 13:3924,89552,388,78619,917,0001,991,0002,301,952
7Oct 6, 2023 13:3924,97848,972,00718,984,0002,997,0002,297,856
8Oct 6, 2023 13:3924,98049,205,08819,984,0001,998,0002,293,760
9Oct 6, 2023 13:3925,27345,637,96620,219,0002,021,0002,383,872
10Oct 6, 2023 13:3925,69187,986,90222,607,77902,273,280
11Oct 6, 2023 13:3925,69586,035,46522,611,81602,285,568
12Oct 6, 2023 13:3925,74698,347,78222,656,82102,269,184