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 listOct 7, 2023 18:52Pavel ZagrebinPavel ZagrebinScore: 1,311,945Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 7, 2023 18:521,311,8761,228,806,2271,154,450,46402,252,800
2Oct 7, 2023 18:521,311,9451,229,903,4491,154,511,33102,244,608
3Oct 7, 2023 18:521,312,0121,213,389,5111,154,570,62802,244,608