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 listJul 8, 2021 17:14Yuriy LyfenkoYuriy LyfenkoScore: 39,207Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2021 17:1430,74793,179,59927,057,03702,220,032
2Jul 8, 2021 17:1430,76191,023,03227,069,83902,224,128
3Jul 8, 2021 17:1430,78999,970,01927,093,90302,215,936
4Jul 8, 2021 17:1439,06460,520,97634,376,00002,367,488
5Jul 8, 2021 17:1439,16655,603,80334,466,00002,265,088
6Jul 8, 2021 17:1439,18959,623,91433,472,0001,014,0002,371,584
7Jul 8, 2021 17:1439,20759,020,17433,488,0001,014,0002,379,776
8Jul 8, 2021 17:1439,20854,559,01733,489,0001,014,0002,269,184
9Jul 8, 2021 17:1439,25155,504,18933,526,0001,015,0002,269,184
10Jul 8, 2021 17:1439,30761,003,64534,590,00002,269,184
11Jul 8, 2021 17:1439,32860,691,04533,592,0001,017,0002,379,776
12Jul 8, 2021 17:1439,38457,824,92433,639,0001,019,0002,273,280