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:06Joad NacerJoad NacerScore: 178,545Success
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:06177,361208,267,485156,077,77702,260,992
2Apr 22, 2024 20:08177,801230,818,382156,464,58902,252,800
3Apr 22, 2024 20:08178,534219,188,324157,110,31202,260,992
4Apr 22, 2024 20:06178,545216,593,704157,119,88702,252,800
5Apr 22, 2024 20:06178,556211,581,466157,128,92602,256,896
6Apr 22, 2024 20:08178,718224,493,953157,271,99902,265,088