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 9, 2024 01:50zielajzielajScore: 30,927Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 9, 2024 01:5030,91850,753,23426,201,0001,007,0002,355,200
2Dec 9, 2024 01:5030,92750,194,26325,200,0002,016,0002,531,328
3Dec 9, 2024 01:5030,96954,434,29126,244,0001,009,0002,527,232