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 listDec 31, 2024 22:17zielajzielajScore: 3,610Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2024 22:173,60520,653,3801,057,0002,115,0002,469,888
2Dec 31, 2024 22:173,61019,532,7201,059,0002,118,0002,469,888
3Dec 31, 2024 22:173,68619,964,7301,081,0002,163,0002,461,696