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 24, 2023 14:50gchebanovgchebanovScore: 41,898Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 24, 2023 14:5041,58259,451,45534,560,0002,032,0002,310,144
2Jul 24, 2023 14:5041,74368,185,99833,756,0002,978,0002,387,968
3Jul 24, 2023 14:5041,75364,260,18234,702,0002,041,0002,334,720
4Jul 24, 2023 14:5041,78262,868,37135,747,0001,021,0002,482,176
5Jul 24, 2023 14:5041,80861,414,33534,803,0001,988,0002,383,872
6Jul 24, 2023 14:5041,87262,970,02934,856,0001,991,0002,375,680
7Jul 24, 2023 14:5041,89862,683,45135,874,000996,0002,383,872
8Jul 24, 2023 14:5041,90563,377,43136,876,00002,351,104
9Jul 24, 2023 14:5041,91761,923,78234,894,0001,993,0002,379,776
10Jul 24, 2023 14:5042,93991,794,09637,786,03402,228,224
11Jul 24, 2023 14:5042,973125,802,64137,816,06502,228,224
12Jul 24, 2023 14:5042,978100,783,65337,820,87402,224,128