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 23:00Joad NacerJoad NacerError
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 23:0300000Error: expected "51004486386435 ", got "51004583290516 "
2Apr 22, 2024 23:0457,212107,776,48950,346,83702,265,088
3Apr 22, 2024 23:0457,385110,501,69850,498,40202,265,088
4Apr 22, 2024 23:0157,457118,703,74250,562,32802,265,088
5Apr 22, 2024 23:0457,463102,394,65750,567,16102,256,896
6Apr 22, 2024 23:0057,471119,368,26250,574,05302,260,992
7Apr 22, 2024 23:0157,493106,153,47750,593,85002,256,896
8Apr 22, 2024 23:0057,633116,721,58150,717,26602,252,800
9Apr 22, 2024 23:0057,691110,565,44250,767,78602,260,992
10Apr 22, 2024 23:0157,815120,749,61850,876,95802,260,992