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, 2023 01:48Kenneth MaplesKenneth MaplesScore: 21,967Success
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, 2023 01:4821,84889,757,33419,226,07802,224,128
2Dec 24, 2023 01:4821,96792,766,82219,331,11902,236,416
3Dec 24, 2023 01:4822,07662,144,99519,426,80902,224,128