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:47exebookexebookScore: 3,618,105Success
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:473,617,4633,251,208,9353,183,367,08402,244,608
2May 14, 2024 16:473,618,1053,251,615,9913,183,932,48702,240,512
3May 14, 2024 16:473,618,7483,249,458,7053,184,498,20902,244,608