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:52zielajzielajError
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:5100000Error: expected "51669565338791 ", got "51669655679988 "stderr
2Dec 20, 2024 13:524,30025,198,9262,523,0001,261,0002,273,280
3Dec 20, 2024 13:524,49720,869,1792,968,000989,0002,359,296
4Dec 20, 2024 13:525,93222,442,9443,132,0002,088,0002,535,424