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:52apuxbtapuxbtScore: 35,292Success
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:5235,11061,648,55528,904,0001,993,0002,265,088
2Nov 30, 2022 11:5235,12758,397,58929,915,000997,0002,260,992
3Nov 30, 2022 11:5235,13357,215,19628,923,0001,994,0002,387,968
4Nov 30, 2022 11:5235,14359,268,69929,929,000997,0002,392,064
5Nov 30, 2022 11:5235,19059,084,04829,969,000998,0002,265,088
6Nov 30, 2022 11:5235,24860,911,74529,017,0002,001,0002,387,968
7Nov 30, 2022 11:5235,29262,525,40330,056,0001,001,0002,265,088
8Nov 30, 2022 11:5235,32361,224,31828,076,0003,008,0002,265,088
9Nov 30, 2022 11:5235,35055,639,87230,105,0001,003,0002,265,088
10Nov 30, 2022 11:5237,054100,264,19632,607,56302,240,512
11Nov 30, 2022 11:5237,055104,815,23832,608,19702,240,512
12Nov 30, 2022 11:5237,113114,563,16132,659,14902,232,320