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 listFeb 20, 2025 16:34wainCGPwainCGPScore: 3,399,277Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2025 16:343,395,7973,013,945,2772,986,302,0001,999,0002,277,376
2Feb 20, 2025 16:343,396,8403,015,179,0302,985,221,0003,998,0002,273,280
3Feb 20, 2025 16:343,397,0283,015,140,8362,986,387,0002,998,0002,465,792
4Feb 20, 2025 16:343,397,1833,016,050,5472,985,523,0003,998,0002,461,696
5Feb 20, 2025 16:343,399,2773,020,893,5212,988,366,0002,998,0002,277,376
6Feb 20, 2025 16:343,401,5193,025,540,8332,990,338,0002,999,0002,473,984
7Feb 20, 2025 16:343,401,6943,024,296,0312,991,492,0001,999,0002,277,376
8Feb 20, 2025 16:343,412,9093,026,962,8803,000,361,0002,999,0002,506,752
9Feb 20, 2025 16:343,417,2863,031,704,7523,003,214,0003,998,0002,461,696