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:54apuxbtapuxbtScore: 33,970Success
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:5433,66953,704,66629,629,00002,506,752
2Nov 30, 2022 11:5433,72255,553,91028,652,0001,023,0002,392,064
3Nov 30, 2022 11:5433,73856,376,70128,666,0001,023,0002,392,064
4Nov 30, 2022 11:5433,77657,981,57629,723,00002,265,088
5Nov 30, 2022 11:5433,78457,341,69228,705,0001,025,0002,265,088
6Nov 30, 2022 11:5433,80255,778,14228,721,0001,025,0002,392,064
7Nov 30, 2022 11:5433,97052,732,67128,898,000996,0002,265,088
8Nov 30, 2022 11:5433,97061,109,22128,898,000996,0002,392,064
9Nov 30, 2022 11:5434,04358,143,56027,961,0001,997,0002,265,088
10Nov 30, 2022 11:5434,93684,159,91730,743,40202,228,224
11Nov 30, 2022 11:5434,984110,521,10830,786,34002,220,032
12Nov 30, 2022 11:5435,080100,774,04130,870,37202,240,512