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 listJul 5, 2024 16:27mberman12mberman12Score: 3,806,028Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2024 16:273,794,8243,403,542,7963,339,445,06302,252,800
2Jul 5, 2024 16:273,794,9833,393,481,8493,339,584,87702,256,896
3Jul 5, 2024 16:273,799,6873,410,149,8453,343,724,56802,256,896
4Jul 5, 2024 16:273,806,0283,405,799,4763,349,304,30202,256,896
5Jul 5, 2024 16:273,825,5673,426,564,8833,366,499,23502,252,800
6Jul 5, 2024 16:273,835,3003,445,946,1683,375,064,06902,265,088