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 listJul 30, 2022 09:39Robert BurkeRobert BurkeScore: 1,469,353Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 30, 2022 09:391,466,4731,343,255,7641,290,495,97602,179,072
2Jul 30, 2022 09:391,469,3531,351,766,7001,293,030,53302,174,976
3Jul 30, 2022 09:391,473,6791,353,010,7721,296,837,36002,179,072