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 31, 2022 15:46Robert BurkeRobert BurkeScore: 37,041Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2022 15:4635,294102,268,75731,058,55802,174,976
2Jul 31, 2022 15:4635,49587,726,38131,235,50402,297,856
3Jul 31, 2022 15:4635,59286,927,75331,321,07402,174,976
4Jul 31, 2022 15:4636,87555,856,44431,436,0001,014,0002,326,528
5Jul 31, 2022 15:4636,94053,980,18931,492,0001,015,0002,535,424
6Jul 31, 2022 15:4636,95651,050,14031,505,0001,016,0002,326,528
7Jul 31, 2022 15:4637,04156,523,91131,578,0001,018,0002,322,432
8Jul 31, 2022 15:4637,08859,915,05931,618,0001,019,0002,535,424
9Jul 31, 2022 15:4637,11559,629,00632,661,00002,322,432
10Jul 31, 2022 15:4637,19063,180,65432,727,00002,326,528
11Jul 31, 2022 15:4637,37057,714,07330,893,0001,993,0002,326,528
12Jul 31, 2022 15:4637,39454,610,29631,910,000997,0002,318,336