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 20, 2021 12:25Yurkov AlekseyYurkov AlekseyScore: 7,329,207Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 20, 2021 12:257,319,0296,504,976,5186,440,745,85602,248,704
2Jun 20, 2021 12:257,329,2076,504,403,1646,449,702,49602,256,896
3Jun 20, 2021 12:257,331,2996,512,195,3476,451,543,46102,260,992