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 24, 2024 22:02zielajzielajScore: 4,300Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 24, 2024 22:024,16724,369,4162,445,0001,222,0002,461,696
2Dec 24, 2024 22:024,30019,287,0312,523,0001,261,0002,461,696
3Dec 24, 2024 22:024,32620,839,2792,538,0001,269,0002,273,280