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 20, 2024 13:50zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 20, 2024 13:4900000Error: expected "51074852451769 ", got "51075266230586 "stderr
2Dec 20, 2024 13:4900000Error: expected "51315094263181 ", got "51315912664502 "stderr
3Dec 20, 2024 13:504,25325,601,6303,743,00002,289,664
4Dec 20, 2024 13:504,30920,715,0952,528,0001,264,0002,273,280
5Dec 20, 2024 13:504,44720,908,8642,935,000978,0002,281,472