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 listMay 14, 2024 16:24exebookexebookScore: 11,397,977Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2024 16:2411,395,04010,160,694,27510,027,634,88802,256,896
2May 14, 2024 16:2411,397,97710,139,171,18610,030,219,64302,224,128
3May 14, 2024 16:2411,400,37210,162,141,98510,032,327,10602,252,800