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 29, 2022 05:23apuxbtapuxbtScore: 37,549Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 29, 2022 05:2337,46455,047,51430,970,0001,998,0002,273,280
2Nov 29, 2022 05:2337,46462,016,04129,971,0002,997,0002,363,392
3Nov 29, 2022 05:2337,47755,685,72830,982,0001,998,0002,273,280
4Nov 29, 2022 05:2337,49854,220,33228,999,0003,999,0002,310,144
5Nov 29, 2022 05:2337,50360,239,58230,003,0003,000,0002,273,280
6Nov 29, 2022 05:2337,51563,512,37831,013,0002,000,0002,273,280
7Nov 29, 2022 05:2337,54961,822,92631,041,0002,002,0002,326,528
8Nov 29, 2022 05:2337,69757,135,15830,158,0003,015,0002,392,064
9Nov 29, 2022 05:2337,70553,542,61230,164,0003,016,0002,314,240
10Nov 29, 2022 05:2338,931109,669,73834,259,49002,297,856
11Nov 29, 2022 05:2338,93890,343,97834,265,15702,293,760
12Nov 29, 2022 05:2339,00690,433,99034,324,99502,297,856