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 11:39exebookexebookScore: 7,916,300Success
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 11:397,893,5607,009,226,6856,946,332,85502,252,800
2May 14, 2024 11:397,916,3007,021,855,2666,966,343,64002,260,992
3May 14, 2024 11:397,958,4857,068,784,7837,003,466,86702,260,992