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 22, 2024 11: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 22, 2024 11:5000000Error: expected "51140321983714 ", got "51142106622023 "stderr
2Dec 22, 2024 11:504,19016,727,5532,458,0001,229,0002,297,856
3Dec 22, 2024 11:504,20121,567,7372,465,0001,232,0002,449,408
4Dec 22, 2024 11:504,30719,173,4722,527,0001,263,0002,535,424