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 29, 2022 14:28Robert BurkeRobert BurkeScore: 1,492,569Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 29, 2022 14:281,484,3791,367,309,1321,306,253,72102,244,608
2Jul 29, 2022 14:281,492,5691,384,056,0081,313,460,62802,256,896
3Jul 29, 2022 14:281,496,1641,375,212,8321,316,624,66802,244,608