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 listFeb 18, 2024 12:57Huy Duc LeHuy Duc LeScore: 57,533Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 18, 2024 12:5752,262122,147,66145,990,51502,248,704
2Feb 18, 2024 12:5752,958107,481,39446,602,99202,260,992
3Feb 18, 2024 12:5753,042131,505,83446,676,85902,244,608
4Feb 18, 2024 12:5757,30873,076,97949,423,0001,008,0002,269,184
5Feb 18, 2024 12:5757,33074,466,86750,450,00002,281,472
6Feb 18, 2024 12:5757,39773,070,54050,509,00002,265,088
7Feb 18, 2024 12:5757,53376,675,64049,617,0001,012,0002,265,088
8Feb 18, 2024 12:5757,64778,822,07549,715,0001,014,0002,281,472
9Feb 18, 2024 12:5757,65082,770,92650,732,00002,281,472
10Feb 18, 2024 12:5757,70380,564,34249,784,000995,0002,281,472
11Feb 18, 2024 12:5757,80878,295,61149,874,000997,0002,281,472
12Feb 18, 2024 12:5757,84778,120,06748,909,0001,996,0002,281,472