Best solutions for Next Prime (Hard)

100 / 100
AC | C++14
cranberrysauce26 on April 16, 2017, 1:30 a.m.
0.03s
1.4 MB
100 / 100
AC | C
pls on Dec. 23, 2016, 10:21 p.m.
0.04s
908.0 KB
100 / 100
AC | C
quantum on Oct. 6, 2017, 12:37 a.m.
0.05s
464.0 KB
100 / 100
AC | C++11
MackenzieTeam3 on Oct. 5, 2017, 4:33 p.m.
0.05s
1.2 MB
100 / 100
AC | C++11
GHETTO on May 18, 2015, 7:55 p.m.
0.06s
1.0 MB
100 / 100
AC | C++11
d on May 8, 2015, 10:13 a.m.
0.06s
1.0 MB
100 / 100
AC | C++11
insect on Sept. 18, 2017, 6:43 p.m.
0.07s
1.6 MB
100 / 100
AC | C++11
zimpha on Jan. 1, 2016, 11:51 a.m.
0.07s
1.4 MB
100 / 100
AC | RUST
mmun on Jan. 6, 2017, 2:04 p.m.
0.14s
2.0 MB
100 / 100
AC | C
magneticresonance on Oct. 7, 2016, 9:34 p.m.
0.15s
912.0 KB
100 / 100
AC | C++11
FatalEagle on April 5, 2015, 11:40 p.m.
0.15s
960.0 KB
100 / 100
AC | C++03
kipply on June 14, 2017, 12:07 p.m.
0.18s
1.4 MB
100 / 100
AC | C
bruce on March 23, 2015, 11:12 p.m.
0.18s
444.0 KB
100 / 100
AC | C++11
Eeyore46656 on March 22, 2017, 9:24 a.m.
0.19s
1.4 MB
100 / 100
AC | C++03
vici on May 28, 2015, 3:47 p.m.
0.20s
1.0 MB
100 / 100
AC | C++11
jimgao on Dec. 29, 2015, 7:15 p.m.
0.20s
1.0 MB
100 / 100
AC | C++11
jeffreyxiao on June 6, 2015, 5:28 p.m.
0.20s
1.0 MB
100 / 100
AC | C++03
ImbaCalvin on March 28, 2015, 11:34 a.m.
0.20s
1.0 MB
100 / 100
AC | C++14
0xc3 on Oct. 6, 2017, 10:00 a.m.
0.21s
1.2 MB
100 / 100
AC | C++11
lmykyo on Jan. 10, 2016, 5:34 a.m.
0.21s
820.0 KB
100 / 100
AC | C++11
aidenbenner on March 8, 2017, 11:42 p.m.
0.21s
1.4 MB
100 / 100
AC | C++11
jkguipqnjcy49979693 on Aug. 10, 2017, 2:12 p.m.
0.22s
1.4 MB
100 / 100
AC | C++14
Kirito on Jan. 14, 2017, 7:54 p.m.
0.22s
1.4 MB
100 / 100
AC | Clang++
wleung_bvg on Aug. 17, 2017, 12:22 a.m.
0.23s
1.4 MB
100 / 100
AC | C++11
kevinwen on Dec. 13, 2016, 5:44 p.m.
0.23s
1.4 MB
100 / 100
AC | C++11
thomas0115 on May 11, 2016, 10:39 a.m.
0.25s
960.0 KB
100 / 100
AC | C++14
Ninjaclasher on Oct. 6, 2017, 8:25 p.m.
0.27s
1.2 MB
100 / 100
AC | C++11
Zander on Nov. 4, 2016, 8:44 p.m.
0.27s
1.3 MB
100 / 100
AC | C++11
chenj on Feb. 24, 2017, 10:58 p.m.
0.28s
1.6 MB
100 / 100
AC | C++11
fungucide420 on April 3, 2017, 12:22 p.m.
0.33s
1.4 MB
100 / 100
AC | C++14
Quantris on Jan. 15, 2016, 9:21 p.m.
0.35s
700.0 KB
100 / 100
AC | C++14
spencereir on March 20, 2016, 12:11 p.m.
0.35s
708.0 KB
100 / 100
AC | C++11
PogChamp on Sept. 20, 2015, 4:05 p.m.
0.40s
912.0 KB
100 / 100
AC | C++14
rsylshzxdkh on Oct. 22, 2017, 6:23 p.m.
0.45s
1.2 MB
100 / 100
AC | C++11
Ken_Shi on Dec. 14, 2016, 11:26 p.m.
0.58s
1.4 MB
100 / 100
AC | C++03
awaykened on June 3, 2015, 8:17 p.m.
0.58s
964.0 KB
100 / 100
AC | C++03
aCookieBreak on Sept. 13, 2016, 7:24 p.m.
0.61s
1.6 MB
100 / 100
AC | C++11
BillZeng2k on Sept. 23, 2016, 6:13 p.m.
0.87s
1.6 MB
100 / 100
AC | C++11
mgch on Oct. 25, 2015, 7:30 a.m.
1.00s
1.0 MB
100 / 100
AC | C++03
razvand on April 22, 2016, 7:27 p.m.
1.00s
956.0 KB
100 / 100
AC | C++11
oldatlantian on July 14, 2016, 11:50 a.m.
1.14s
2.5 MB
100 / 100
AC | C
dmoj_42 on March 27, 2017, 9:07 a.m.
2.81s
920.0 KB
100 / 100
AC | C++17
XTL on Aug. 24, 2017, 3:46 p.m.
4.26s
1.6 MB
100 / 100
AC | JAVA9
djtequila73 on May 30, 2016, 8:11 p.m.
5.83s
24.4 MB