You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
474 B
21 lines
474 B
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
package codetoanalyze.java.performance;
|
|
|
|
public class Continue {
|
|
/* Expected 1000 * 1000 / 2 */
|
|
int continue_outer_loop() {
|
|
outer:
|
|
for (int i = 2; i < 1000; i++) {
|
|
for (int j = 2; j < i; j++) {
|
|
if (i % j == 0) continue outer;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
}
|