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 listApr 22, 2024 18:25Joad NacerJoad NacerScore: 1,642,109Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2024 18:251,636,7171,497,948,6601,440,311,37702,252,800
2Apr 22, 2024 18:251,642,1091,523,604,7431,445,055,76002,256,896
3Apr 22, 2024 18:251,645,6681,506,359,4511,448,187,43202,260,992