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 18:32wainCGPwainCGPScore: 1,557,157Success
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 18:321,547,3611,388,913,3721,358,679,0002,999,0002,277,376
2Feb 20, 2025 18:321,551,8091,395,048,4461,361,594,0003,998,0002,355,200
3Feb 20, 2025 18:321,552,0231,389,225,8841,361,781,0003,999,0002,289,664
4Feb 20, 2025 18:321,552,8691,391,497,8611,362,527,0003,998,0002,461,696
5Feb 20, 2025 18:321,557,1571,393,603,7041,367,300,0002,998,0002,289,664
6Feb 20, 2025 18:321,557,3751,392,605,1391,366,492,0003,998,0002,473,984
7Feb 20, 2025 18:321,560,8741,397,096,9921,369,571,0003,998,0002,453,504
8Feb 20, 2025 18:321,563,1141,400,069,9141,371,542,0003,998,0002,277,376
9Feb 20, 2025 18:321,565,9941,404,418,5491,375,075,0003,000,0002,289,664