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 listNov 11, 2021 09:03Ilya AniskovetsIlya AniskovetsScore: 668,751Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 11, 2021 09:03665,579650,093,642585,709,94202,265,088
2Nov 11, 2021 09:07665,929653,971,248586,017,79502,260,992
3Nov 11, 2021 09:07666,837644,830,490586,816,90702,248,704
4Nov 11, 2021 09:07667,534659,638,515587,430,22402,265,088
5Nov 11, 2021 09:00668,751640,803,210588,500,74202,252,800
6Nov 11, 2021 09:00668,910653,527,324588,640,79902,256,896
7Nov 11, 2021 09:03668,935652,527,167588,662,45802,252,800
8Nov 11, 2021 09:03670,019646,789,308589,617,13902,256,896
9Nov 11, 2021 09:00671,418658,483,643590,848,12402,265,088