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 6, 2024 00:33Joad NacerJoad NacerScore: 27,619Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 6, 2024 00:3327,54744,943,98523,231,0001,010,0002,269,184
2Dec 6, 2024 00:3327,61948,061,84023,293,0001,012,0002,527,232
3Dec 6, 2024 00:3327,69051,859,61924,367,00002,527,232