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:06Joad NacerJoad NacerScore: 291,891Success
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:07291,579311,955,652256,589,17902,260,992
2Apr 22, 2024 18:06291,592312,313,770256,600,71002,260,992
3Apr 22, 2024 18:07291,626345,636,961256,631,13102,260,992
4Apr 22, 2024 18:06291,891316,455,748256,863,67702,256,896
5Apr 22, 2024 18:06291,911308,001,119256,881,81102,252,800
6Apr 22, 2024 18:07292,490321,611,580257,391,54002,265,088