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 20:07Joad NacerJoad NacerScore: 71,000Success
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 20:0770,530127,166,42162,066,46402,256,896
2Apr 22, 2024 20:0670,753131,419,65162,262,50702,256,896
3Apr 22, 2024 20:0670,844129,825,09362,342,68602,265,088
4Apr 22, 2024 20:0771,000123,999,14262,480,08202,260,992
5Apr 22, 2024 20:0771,022123,636,17562,499,50902,269,184
6Apr 22, 2024 20:0671,078122,518,48862,548,56802,265,088