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 listDec 9, 2024 02:32zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 9, 2024 02:3100000Error: expected "51509257789076 ", got "51510415628457 "stderr
2Dec 9, 2024 02:3225,36143,084,76621,304,0001,014,0002,355,200
3Dec 9, 2024 02:3225,36547,617,02422,321,00002,269,184
4Dec 9, 2024 02:3225,46853,533,44322,412,00002,359,296
5Dec 9, 2024 02:3225,47246,444,84622,415,00002,359,296
6Dec 9, 2024 02:3225,49446,123,70122,435,00002,363,392
7Dec 9, 2024 02:3225,51943,359,54321,437,0001,020,0002,359,296
8Dec 9, 2024 02:3225,52848,704,03522,465,00002,269,184
9Dec 9, 2024 02:3225,58844,539,46921,494,0001,023,0002,351,104
10Dec 9, 2024 02:3225,66846,730,20322,588,00002,351,104