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 12, 2022 15:53Kenneth MaplesKenneth MaplesScore: 2,926,770Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 12, 2022 15:532,908,4662,633,808,0092,559,449,79802,252,800
2Oct 12, 2022 15:532,926,7702,637,479,2392,575,557,64902,248,704
3Oct 12, 2022 15:532,929,4232,640,061,1992,577,892,53202,260,992