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:39wainCGPwainCGPScore: 2,083,440Success
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:392,068,3341,847,473,6401,816,136,0003,998,0002,289,664
2Feb 20, 2025 16:392,070,6031,850,513,5251,818,133,0003,998,0002,433,024
3Feb 20, 2025 16:392,077,1141,853,113,0211,824,862,0002,998,0002,289,664
4Feb 20, 2025 16:392,082,0531,860,391,1291,828,209,0003,998,0002,277,376
5Feb 20, 2025 16:392,083,4401,857,829,5451,830,428,0002,999,0002,461,696
6Feb 20, 2025 16:392,083,9811,865,245,3511,829,906,0003,997,0002,277,376
7Feb 20, 2025 16:392,090,4151,865,318,6931,835,566,0003,999,0002,469,888
8Feb 20, 2025 16:392,090,9781,871,841,0031,836,064,0003,997,0002,379,776
9Feb 20, 2025 16:392,100,8761,877,656,0361,845,772,0002,999,0002,523,136