primes.out 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. 4 1 Identifier count
  2. 4 7 Op_assign
  3. 4 9 Integer 1
  4. 4 10 Semicolon
  5. 5 1 Identifier n
  6. 5 3 Op_assign
  7. 5 5 Integer 1
  8. 5 6 Semicolon
  9. 6 1 Identifier limit
  10. 6 7 Op_assign
  11. 6 9 Integer 100
  12. 6 12 Semicolon
  13. 7 1 Keyword_while
  14. 7 7 LeftParen
  15. 7 8 Identifier n
  16. 7 10 Op_less
  17. 7 12 Identifier limit
  18. 7 17 RightParen
  19. 7 19 LeftBrace
  20. 8 5 Identifier k
  21. 8 6 Op_assign
  22. 8 7 Integer 3
  23. 8 8 Semicolon
  24. 9 5 Identifier p
  25. 9 6 Op_assign
  26. 9 7 Integer 1
  27. 9 8 Semicolon
  28. 10 5 Identifier n
  29. 10 6 Op_assign
  30. 10 7 Identifier n
  31. 10 8 Op_add
  32. 10 9 Integer 2
  33. 10 10 Semicolon
  34. 11 5 Keyword_while
  35. 11 11 LeftParen
  36. 11 12 LeftParen
  37. 11 13 Identifier k
  38. 11 14 Op_multiply
  39. 11 15 Identifier k
  40. 11 16 Op_lessequal
  41. 11 18 Identifier n
  42. 11 19 RightParen
  43. 11 21 Op_and
  44. 11 24 LeftParen
  45. 11 25 Identifier p
  46. 11 26 RightParen
  47. 11 27 RightParen
  48. 11 29 LeftBrace
  49. 12 9 Identifier p
  50. 12 10 Op_assign
  51. 12 11 Identifier n
  52. 12 12 Op_divide
  53. 12 13 Identifier k
  54. 12 14 Op_multiply
  55. 12 15 Identifier k
  56. 12 16 Op_notequal
  57. 12 18 Identifier n
  58. 12 19 Semicolon
  59. 13 9 Identifier k
  60. 13 10 Op_assign
  61. 13 11 Identifier k
  62. 13 12 Op_add
  63. 13 13 Integer 2
  64. 13 14 Semicolon
  65. 14 5 RightBrace
  66. 15 5 Keyword_if
  67. 15 8 LeftParen
  68. 15 9 Identifier p
  69. 15 10 RightParen
  70. 15 12 LeftBrace
  71. 16 9 Keyword_print
  72. 16 14 LeftParen
  73. 16 15 Identifier n
  74. 16 16 Comma
  75. 16 18 String " is prime\n"
  76. 16 31 RightParen
  77. 16 32 Semicolon
  78. 17 9 Identifier count
  79. 17 15 Op_assign
  80. 17 17 Identifier count
  81. 17 23 Op_add
  82. 17 25 Integer 1
  83. 17 26 Semicolon
  84. 18 5 RightBrace
  85. 19 1 RightBrace
  86. 20 1 Keyword_print
  87. 20 6 LeftParen
  88. 20 7 String "Total primes found: "
  89. 20 29 Comma
  90. 20 31 Identifier count
  91. 20 36 Comma
  92. 20 38 String "\n"
  93. 20 42 RightParen
  94. 20 43 Semicolon
  95. 21 1 End_of_input