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 21, 2024 19:34zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 21, 2024 19:3400000Error: expected "51209374451141 ", got "51209374451028 "stderr
2Dec 21, 2024 19:344,09220,481,8232,401,0001,200,0002,461,696
3Dec 21, 2024 19:344,20720,888,6512,468,0001,234,0002,457,600
4Dec 21, 2024 19:344,85619,527,9273,205,0001,068,0002,535,424