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.

Date AuthorLanguageStatus Score
Feb 19, 2024 14:37Huy Duc LeHuy Duc LeCPPclang++10.0.0Success35,152
Feb 19, 2024 14:21Huy Duc LeHuy Duc LeCPPclang++10.0.0Success33,215
Feb 19, 2024 14:21Huy Duc LeHuy Duc LeCPPclang++10.0.0Success33,188
Feb 19, 2024 14:18Huy Duc LeHuy Duc LeCPPclang++10.0.0Success32,811+0.60 RP
Feb 19, 2024 14:03Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 19, 2024 14:02Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 19, 2024 13:28Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 19, 2024 13:27Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 19, 2024 13:26Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 19, 2024 13:25Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 19, 2024 13:16Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 19, 2024 13:02Huy Duc LeHuy Duc LeCPPclang++10.0.0Success32,876+0.53 RP
Feb 19, 2024 13:01Huy Duc LeHuy Duc LeCPPclang++10.0.0Success33,047
Feb 19, 2024 13:00Huy Duc LeHuy Duc LeCPPclang++10.0.0Success32,933+115.17 RP
Feb 19, 2024 09:14AnSaAnSaCPPg++9.4.0Error
Feb 19, 2024 09:13AnSaAnSaCPPg++9.4.0Error
Feb 19, 2024 08:49AnSaAnSaCPPg++9.4.0Error
Feb 19, 2024 08:36AnSaAnSaCPPg++9.4.0Error
Feb 19, 2024 07:19nguyendqminhnguyendqminhCPPg++9.4.0Success137,801
Feb 19, 2024 06:56nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:46nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:45nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:41nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:40nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:34nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:32nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:31nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:29nguyendqminhnguyendqminhCPPg++9.4.0Success100,660
Feb 19, 2024 06:26nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:25nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:18nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:10nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:06nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:05nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:01nguyendqminhnguyendqminhCPPg++9.4.0Success257,734
Feb 19, 2024 06:00nguyendqminhnguyendqminhCPPg++9.4.0Success258,069
Feb 19, 2024 05:59nguyendqminhnguyendqminhCPPg++9.4.0Success258,388
Feb 19, 2024 05:23nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 05:23nguyendqminhnguyendqminhCPPg++9.4.0Success100,339+8.68 RP
Feb 19, 2024 05:19nguyendqminhnguyendqminhCPPg++9.4.0Success122,738
Feb 19, 2024 05:03AnSaAnSaCPPg++9.4.0Success214,095
Feb 19, 2024 05:01nguyendqminhnguyendqminhCPPg++9.4.0Success109,909+90.98 RP
Feb 19, 2024 03:03Huy Duc LeHuy Duc LeCPPclang++10.0.0Success57,389
Feb 19, 2024 02:52Huy Duc LeHuy Duc LeCPPclang++10.0.0Success53,057+2.08 RP
Feb 18, 2024 13:30Huy Duc LeHuy Duc LeCPPclang++10.0.0Success53,649+0.91 RP
Feb 18, 2024 13:23Huy Duc LeHuy Duc LeCPPg++9.4.0Success56,016
Feb 18, 2024 13:22Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 18, 2024 13:13Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 18, 2024 13:10Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 18, 2024 13:10Huy Duc LeHuy Duc LeCPPclang++10.0.0Success54,850
Feb 18, 2024 13:02Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 18, 2024 12:57Huy Duc LeHuy Duc LeCPPclang++10.0.0Success57,533
Feb 18, 2024 12:54Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 18, 2024 12:40Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 18, 2024 11:20Huy Duc LeHuy Duc LeCPPclang++10.0.0Success61,842
Feb 18, 2024 11:15Huy Duc LeHuy Duc LeCPPclang++10.0.0Success100,738
Feb 18, 2024 11:13Huy Duc LeHuy Duc LeCPPclang++10.0.0Success59,516
Feb 18, 2024 11:12Huy Duc LeHuy Duc LeCPPclang++10.0.0Success53,913+3.06 RP
Feb 18, 2024 11:12Huy Duc LeHuy Duc LeCPPg++9.4.0Success59,043
Feb 18, 2024 11:11Huy Duc LeHuy Duc LeCPPclang++10.0.0Success55,282
Feb 18, 2024 11:10Huy Duc LeHuy Duc LeCPPclang++10.0.0Success54,818+1.01 RP
Feb 18, 2024 11:04Huy Duc LeHuy Duc LeCPPclang++10.0.0Success99,479
Feb 18, 2024 09:31Ryan Chung Yi ShengRyan Chung Yi ShengCPPg++9.4.0Success48,992+0.12 RP
Feb 18, 2024 05:20Huy Duc LeHuy Duc LeCPPclang++10.0.0Success55,123+7.63 RP
Feb 18, 2024 05:19Huy Duc LeHuy Duc LeCPPg++9.4.0Success59,759
Feb 18, 2024 05:18Huy Duc LeHuy Duc LeCPPg++9.4.0Success100,227
Feb 18, 2024 05:16Huy Duc LeHuy Duc LeCPPg++9.4.0Success101,359
Feb 18, 2024 05:15Huy Duc LeHuy Duc LeCPPg++9.4.0Success58,006
Feb 18, 2024 05:09Huy Duc LeHuy Duc LeCPPg++9.4.0Success57,542+0.52 RP
Feb 18, 2024 05:06Huy Duc LeHuy Duc LeCPPg++9.4.0Success64,900
Feb 18, 2024 04:59Huy Duc LeHuy Duc LeCPPg++9.4.0Success111,392
Feb 18, 2024 04:58Huy Duc LeHuy Duc LeCPPg++9.4.0Success111,209
Feb 18, 2024 04:57Huy Duc LeHuy Duc LeCPPg++9.4.0Success57,715+6.25 RP
Feb 18, 2024 04:51Huy Duc LeHuy Duc LeCPPg++9.4.0Success110,118
Feb 18, 2024 04:48Huy Duc LeHuy Duc LeCPPg++9.4.0Success59,876+41.69 RP
Feb 18, 2024 04:48Huy Duc LeHuy Duc LeCPPg++9.4.0Error
Feb 18, 2024 03:38Huy Duc LeHuy Duc LeCPPg++9.4.0Success135,002
Feb 18, 2024 03:36Huy Duc LeHuy Duc LeCPPg++9.4.0Success83,686
Feb 18, 2024 03:35Huy Duc LeHuy Duc LeCPPg++9.4.0Success83,460
Feb 18, 2024 03:35Huy Duc LeHuy Duc LeCPPg++9.4.0Success79,795+0.23 RP
Feb 18, 2024 03:34Huy Duc LeHuy Duc LeCPPg++9.4.0Success79,941+54.24 RP
Feb 18, 2024 03:30Huy Duc LeHuy Duc LeCPPg++9.4.0Success181,794
Feb 18, 2024 02:59Huy Duc LeHuy Duc LeCPPg++9.4.0Success769,520
Feb 18, 2024 02:57Huy Duc LeHuy Duc LeCPPclang++10.0.0Success757,230
Feb 18, 2024 02:54Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 18, 2024 02:52Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 18, 2024 02:50Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 17, 2024 16:06Huy Duc LeHuy Duc LeCPPclang++10.0.0Success141,134+0.33 RP
Feb 17, 2024 16:06Huy Duc LeHuy Duc LeCPPg++9.4.0Success221,804
Feb 17, 2024 16:03Huy Duc LeHuy Duc LeCPPg++9.4.0Success144,778
Feb 17, 2024 16:03Huy Duc LeHuy Duc LeCPPclang++10.0.0Success141,798+8.95 RP
Feb 17, 2024 16:02Huy Duc LeHuy Duc LeCPPclang++10.0.0Success162,752
Feb 17, 2024 16:00Huy Duc LeHuy Duc LeCPPg++9.4.0Success168,826
Feb 17, 2024 15:57Huy Duc LeHuy Duc LeCPPg++9.4.0Success170,133
Feb 17, 2024 15:57Huy Duc LeHuy Duc LeCPPclang++10.0.0Success162,926
Feb 17, 2024 15:54Huy Duc LeHuy Duc LeCPPclang++10.0.0Success162,414+2.03 RP
Feb 17, 2024 08:48Huy Duc LeHuy Duc LeCPPg++9.4.0Success1,579,511
Feb 17, 2024 08:45Huy Duc LeHuy Duc LeCPPg++9.4.0Success1,578,875
Feb 17, 2024 08:44Huy Duc LeHuy Duc LeCPPg++9.4.0Error
Feb 17, 2024 08:37Huy Duc LeHuy Duc LeCPPg++9.4.0Success557,145