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 listDec 29, 2024 17:31zielajzielajScore: 3,747Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2024 17:313,59116,301,3731,053,0002,107,0002,461,696
2Dec 29, 2024 17:313,59719,584,8901,055,0002,110,0002,535,424
3Dec 29, 2024 17:313,63417,968,4382,132,0001,066,0002,465,792
4Dec 29, 2024 17:313,73023,189,9152,188,0001,094,0002,461,696
5Dec 29, 2024 17:313,74719,828,4602,198,0001,099,0002,535,424
6Dec 29, 2024 17:313,83621,721,3522,251,0001,125,0002,465,792
7Dec 29, 2024 17:313,87018,959,1732,271,0001,135,0002,465,792
8Dec 29, 2024 17:313,91119,755,5452,295,0001,147,0002,289,664
9Dec 29, 2024 17:314,61119,320,3883,044,0001,014,0002,465,792