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 14, 2024 18:53MatthiasMatthiasScore: 13,265,227Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 14, 2024 18:5313,075,48811,554,642,13611,493,453,00012,976,0002,453,504
2Dec 14, 2024 18:5313,265,22711,717,030,03811,665,415,0007,985,0002,289,664
3Dec 14, 2024 18:5313,388,20311,828,618,11411,769,642,00011,977,0002,367,488