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 30, 2022 11:50apuxbtapuxbtScore: 39,750Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 30, 2022 11:5039,08398,191,33134,392,83202,236,416
2Nov 30, 2022 11:5039,211102,166,92934,505,66102,240,512
3Nov 30, 2022 11:5039,50861,072,44134,767,00002,265,088
4Nov 30, 2022 11:5039,544114,452,10134,798,31002,232,320
5Nov 30, 2022 11:5039,64965,418,11532,898,0001,993,0002,265,088
6Nov 30, 2022 11:5039,71658,977,57733,952,000998,0002,392,064
7Nov 30, 2022 11:5039,75064,940,59332,982,0001,998,0002,265,088
8Nov 30, 2022 11:5039,77663,591,93133,003,0002,000,0002,265,088
9Nov 30, 2022 11:5039,81058,907,43433,032,0002,001,0002,392,064
10Nov 30, 2022 11:5039,83562,167,95434,054,0001,001,0002,265,088
11Nov 30, 2022 11:5039,83558,118,15034,054,0001,001,0002,383,872
12Nov 30, 2022 11:5039,84360,753,10833,059,0002,003,0002,392,064