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 28, 2024 13:21zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2024 13:2000000Error: expected "51442473042796 ", got "51442473042743 "stderr
2Dec 28, 2024 13:214,14519,453,2122,432,0001,216,0002,461,696
3Dec 28, 2024 13:214,21019,237,7922,470,0001,235,0002,461,696
4Dec 28, 2024 13:214,27020,171,7903,758,00002,449,408