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 18, 2024 05:09Huy Duc LeHuy Duc LeScore: 57,542Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 18, 2024 05:0957,413110,445,88450,523,55602,265,088
2Feb 18, 2024 05:1457,488113,199,87050,589,82302,252,800
3Feb 18, 2024 05:1457,492115,329,29450,592,64302,371,584
4Feb 18, 2024 05:0957,542128,935,41150,637,37702,260,992
5Feb 18, 2024 05:0957,743107,905,85350,813,92002,252,800
6Feb 18, 2024 05:1457,995136,297,28451,035,63102,265,088