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 11, 2024 01:28zielajzielajScore: 26,835Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 11, 2024 01:2826,74343,121,84623,534,00002,355,200
2Dec 11, 2024 01:2826,83541,014,77123,615,00002,527,232
3Dec 11, 2024 01:2827,16153,726,08521,911,0001,991,0002,359,296