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 listMay 24, 2024 05:01CemaCemaScore: 6,788,655Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 24, 2024 05:016,739,2386,000,416,0765,930,529,54502,236,416
2May 24, 2024 05:016,788,6556,034,008,8165,974,016,49902,244,608
3May 24, 2024 05:016,810,9316,060,326,2515,993,618,87402,375,680