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 22, 2025 11:38KeefeKeefeScore: 141,864Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2025 11:38141,558149,689,468124,571,00002,277,376
2Feb 22, 2025 11:38141,623146,350,429124,628,00002,400,256
3Feb 22, 2025 11:38141,851153,935,708122,832,0001,997,0002,408,448
4Feb 22, 2025 11:38141,853152,286,219122,834,0001,997,0002,277,376
5Feb 22, 2025 11:38141,864151,494,923122,843,0001,997,0002,408,448
6Feb 22, 2025 11:38141,913149,919,557123,884,000999,0002,277,376
7Feb 22, 2025 11:38141,948154,378,603122,916,0001,998,0002,277,376
8Feb 22, 2025 11:38142,027153,234,718123,985,000999,0002,277,376
9Feb 22, 2025 11:38142,152155,064,613125,094,00002,404,352