Home | History | Annotate | Line # | Download | only in indent
opt_c.c revision 1.1
      1 /* $NetBSD: opt_c.c,v 1.1 2021/10/22 20:54:36 rillig Exp $ */
      2 /* $FreeBSD$ */
      3 
      4 #indent input
      5 bool
      6 is_prime(int n)
      7 {
      8 	if (n <= 3)
      9 		return n >= 2; /* special case */
     10 	if (n % 2 == 0)
     11 		return false;				/* even numbers */
     12 	return true;
     13 }
     14 #indent end
     15 
     16 #indent run -c49
     17 bool
     18 is_prime(int n)
     19 {
     20 	if (n <= 3)
     21 		return n >= 2;			/* special case */
     22 	if (n % 2 == 0)
     23 		return false;			/* even numbers */
     24 	return true;
     25 }
     26 #indent end
     27