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 23, 2024 19:32CemaCemaScore: 7,325,442Success
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 04:347,276,8596,473,744,1786,403,636,21802,256,896
2May 23, 2024 19:327,284,8926,475,259,6426,410,704,80502,244,608
3May 24, 2024 04:347,311,8756,495,345,3926,434,450,26902,248,704
4May 24, 2024 04:347,325,4426,506,424,0676,446,388,80802,244,608
5May 23, 2024 19:327,336,3036,522,499,8516,455,947,01202,244,608
6May 23, 2024 19:327,387,7616,571,156,8656,501,229,34302,248,704