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 listFeb 17, 2024 08:48Huy Duc LeHuy Duc LeScore: 1,579,511Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 17, 2024 08:481,578,4381,450,669,1401,389,025,53902,265,088
2Feb 17, 2024 08:481,579,5111,449,708,0711,389,969,58402,273,280
3Feb 17, 2024 08:481,582,2271,452,569,5031,392,359,39602,260,992